After the age of reason, it would depend on when/what heresies the child is exposed to, what they understand, and (then) what they accept. You could say, generally speaking, that all non-catholic, baptized persons become "material heretics" when the age of reason begins, but only God knows when they cross the line into formal heresy.