From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21031 invoked by alias); 29 Mar 2013 00:21:39 -0000 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 Received: (qmail 21004 invoked by uid 48); 29 Mar 2013 00:21:32 -0000 From: "w.shane.grant at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56774] [4.7/4.8/4.9 Regression] G++ 4.8 reverses variadic template types during unpacking Date: Fri, 29 Mar 2013 00:21: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: major X-Bugzilla-Who: w.shane.grant at gmail dot com X-Bugzilla-Status: NEW 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 X-SW-Source: 2013-03/txt/msg02151.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56774 --- Comment #4 from Shane 2013-03-29 00:21:32 UTC --- (In reply to comment #1) > We badly need a reduced testcase not using the whole (not to mention > of course) Here's a more reduced test case. template struct mytype {}; template void something( mytype ) { } int main() { // Compiles OK in GCC 4.6.3 but NOT 4.8 something( mytype() ); // Compiles OK in GCC 4.8 but NOT 4.6.3 something( mytype() ); return 0; } I tried to make simpler cases using purely variadic templates (e.g. no class T), but the issue only shows up when there is an individually named template parameter as well as a variadic pack. To get the error to show up it also requires types that cannot be implicitly converted to each other.