From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28538 invoked by alias); 17 Dec 2012 19:08:56 -0000 Received: (qmail 28424 invoked by uid 48); 17 Dec 2012 19:08:37 -0000 From: "vince.rev at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55724] New: Default type of a template value is not working Date: Mon, 17 Dec 2012 19:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: vince.rev at gmail dot com 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: 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/msg01690.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55724 Bug #: 55724 Summary: Default type of a template value is not working Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: vince.rev@gmail.com The following code does not compile with g++ 4.7 : -------------------------------------------- template struct S {}; template void f(S) {} int main() { S<1> s; f(s); } -------------------------------------------- (source : http://stackoverflow.com/q/13915835/882932)