http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46290
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-01 03:07:04 UTC --- >This difference of behaviour seems rather strange to me. Is it done on purpose or is it a bug? It is not done on purpose but it is not a bug. Your code is undefined at compile time if the instantiation is before the definitions. *** This bug has been marked as a duplicate of bug 12222 ***