From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7800 invoked by alias); 18 Nov 2012 01:10:34 -0000 Received: (qmail 7033 invoked by uid 48); 18 Nov 2012 01:09:59 -0000 From: "zeratul976 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55373] New: Partial ordering of variadic function template Date: Sun, 18 Nov 2012 01:10: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: normal X-Bugzilla-Who: zeratul976 at hotmail 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-11/txt/msg01620.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55373 Bug #: 55373 Summary: Partial ordering of variadic function template Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: zeratul976@hotmail.com According to the last example in temp.func.order (14.5.6.2), the call to f below should be ambiguous, but GCC compiles the code and the calls #2: template void f(T, U...); // #1 template void f(T); // #2 void h(int i) { f(&i); // should be ambiguous, but calls #2 }