This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51426] explicit instantiation declaration without definition
- From: "mkp76 at wp dot pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Dec 2011 17:49:06 +0000
- Subject: [Bug c++/51426] explicit instantiation declaration without definition
- Auto-submitted: auto-generated
- References: <bug-51426-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51426
--- Comment #4 from Marcin Pytel <mkp76 at wp dot pl> 2011-12-06 17:49:06 UTC ---
I did some more testing. I was using eclipse and it adds some compilation
flags. The cause is optimization. When you add empty ctor there's the linker
error. But when you compile with -O2 there's no error. When I added something
to ctor (cout) I got linker error even with O2.
Marcin