From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26956 invoked by alias); 15 Feb 2013 09:24:39 -0000 Received: (qmail 26918 invoked by uid 48); 15 Feb 2013 09:24:18 -0000 From: "michael.schlottke at sloede dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56328] Explicit instantiation of inline function template works for base template, fails for specialized template Date: Fri, 15 Feb 2013 09:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: michael.schlottke at sloede dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-02/txt/msg01548.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56328 Michael Schlottke changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #8 from Michael Schlottke 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.