This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24511] [4.0/4.1 Regression] explicit instantiation/extern template unsats on symbols defined later
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2005 20:25:42 -0000
- Subject: [Bug c++/24511] [4.0/4.1 Regression] explicit instantiation/extern template unsats on symbols defined later
- References: <bug-24511-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jason at gcc dot gnu dot org 2005-10-28 20:25 -------
This is not a bug. All member templates must be defined before an explicit
instantiation of the class. The existing standard requires an error on this
case, but a future DR will change the standard to match the g++ behavior.
It's desirable to not require all member templates to be defined in the case of
private copy constructors declared only to prevent copying the class.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24511