From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10652 invoked by alias); 17 Dec 2012 19:26:04 -0000 Received: (qmail 10295 invoked by uid 48); 17 Dec 2012 19:25:40 -0000 From: "ed at catmur dot co.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55724] [C++11] Default type of a template value is not working Date: Mon, 17 Dec 2012 19:26: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: ed at catmur dot co.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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: 2012-12/txt/msg01694.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55724 --- Comment #1 from Ed Catmur 2012-12-17 19:25:39 UTC --- It's not entirely clear in the standard, but my understanding of 14.8.2p5 is that default template argument substitution is contemporaneous to template argument deduction for any particular parameter. Non-type template parameter types deduced from preceding arguments *are* accepted by gcc: template struct S {}; template void g(T, S) {} int main() { S<1> s; g(2, s); }