From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32026 invoked by alias); 2 Mar 2013 03:04:00 -0000 Received: (qmail 31991 invoked by uid 48); 2 Mar 2013 03:03:37 -0000 From: "mmehlich at semanticdesigns dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56506] New: variadic class template specialization not selected as best match Date: Sat, 02 Mar 2013 03:04: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: mmehlich at semanticdesigns 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: 2013-03/txt/msg00111.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56506 Bug #: 56506 Summary: variadic class template specialization not selected as best match Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: mmehlich@semanticdesigns.com I'd expect the instantiation of X in the following code to resolve to the partial specialization, but gcc 4.7.2 seems to instantiate the base template (causing a compile-time name resolution error). // Code: template struct X { }; template struct Y { }; template struct Z { }; template struct X,T>...> { typedef int type; }; X,int>, Y,bool>, Y,char>>::type x; // Detailed compiler version information: gcc -v Using built-in specs. COLLECT_GCC=C:\MinGW\bin\gcc.exe COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.7.2/lto-wrapper.exe Target: mingw32 Configured with: ../gcc-4.7.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-with-cxx --enabl e-version-specific-runtime-libs --build=mingw32 --prefix=/mingw Thread model: win32 gcc version 4.7.2 (GCC)