This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51426] explicit instantiation declaration without definition


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]