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 -
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51426
Paolo Carlini changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
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