[Bug c++/46290] explicit instantiation: inconsistent behaviour between constructor and member functions
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 1 03:07:00 GMT 2012
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 ***
More information about the Gcc-bugs
mailing list