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

2011-12-06 Thread mkp76 at wp dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51426 --- Comment #4 from Marcin Pytel 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 -

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

2011-12-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51426 --- Comment #3 from Jonathan Wakely 2011-12-06 00:32:48 UTC --- (In reply to comment #0) > The below code can be compiled (with -std=C++0x option). By the way, the program compiles without -std=c++0x, GCC has supported extern templates since at

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

2011-12-05 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51426 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

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

2011-12-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51426 --- Comment #1 from Jonathan Wakely 2011-12-05 18:54:11 UTC --- I don't see what that paragraph has to do with it - the explicit instantiation definition appears zero times, zero is less than one. The relevant text is 14.7.2 p11 "An entity that