This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46290] explicit instantiation: inconsistent behaviour between constructor and member functions
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 01 Feb 2012 03:07:04 +0000
- Subject: [Bug c++/46290] explicit instantiation: inconsistent behaviour between constructor and member functions
- Auto-submitted: auto-generated
- References: <bug-46290-4@http.gcc.gnu.org/bugzilla/>
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 ***