This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56328] Explicit instantiation of inline function template works for base template, fails for specialized template
- From: "michael.schlottke at sloede dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Feb 2013 09:24:18 +0000
- Subject: [Bug c++/56328] Explicit instantiation of inline function template works for base template, fails for specialized template
- Auto-submitted: auto-generated
- References: <bug-56328-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56328
Michael Schlottke <michael.schlottke at sloede dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #8 from Michael Schlottke <michael.schlottke at sloede dot com> 2013-02-15 09:24:18 UTC ---
(In reply to comment #7)
> (In reply to comment #5)
> >
> > I fully agree. But why is there a difference then between the base template and
> > the specialization? I am not arguing that the specialized template should work
> > when declared inline, I am questioning the fact that the behavior is different
> > for specialized and non-specialized templates, and I could not find an
> > explanation in the standard.
>
> The program is ill-formed, no diagnostic required, the standard doesn't have to
> define how it's handled.
OK. That's what I was missing. Thank you.