[Bug c++/56328] Explicit instantiation of inline function template works for base template, fails for specialized template

2013-02-15 Thread michael.schlottke at sloede dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56328 Michael Schlottke changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/56328] Explicit instantiation of inline function template works for base template, fails for specialized template

2013-02-15 Thread michael.schlottke at sloede dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56328 --- Comment #5 from Michael Schlottke 2013-02-15 08:05:39 UTC --- (In reply to comment #3) > Also, [basic.def.odr]: "An inline function shall be defined in every > translation unit in which it is odr-used." and [dcl.fct.spec] "If a functio

[Bug c++/56328] Explicit instantiation of inline function template works for base template, fails for specialized template

2013-02-15 Thread michael.schlottke at sloede dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56328 --- Comment #4 from Michael Schlottke 2013-02-15 08:02:07 UTC --- (In reply to comment #2) > The foo<2> specialization is not declared in main.cpp before it would be > needed, so the program is ill-formed, no diagnostic required, according

[Bug c++/56328] New: Explicit instantiation of inline function template works for base template, fails for specialized template

2013-02-14 Thread michael.schlottke at sloede dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56328 Bug #: 56328 Summary: Explicit instantiation of inline function template works for base template, fails for specialized template Classification: Unclassified Pr