From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2333 invoked by alias); 21 Jul 2010 02:43:32 -0000 Received: (qmail 1378 invoked by uid 48); 21 Jul 2010 02:43:16 -0000 Date: Wed, 21 Jul 2010 02:43:00 -0000 Subject: [Bug c++/45012] New: Invalid ambiguity on partial class specialization matching X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rodolfo at rodsoft dot org" 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: 2010-07/txt/msg02158.txt.bz2 The following code doesn't compile unless variable RUNTIME is defined as a "static const int" instead of an "enum": #include enum { RUNTIME = 0 }; // it compiles with the previous line commented out and the next commented in // static const int RUNTIME=0; template struct foo; template class V, int M> struct foo,V, typename std::enable_if::type> {}; template class V1, template class V2, int M> struct foo,V2, typename std::enable_if::type> {}; template struct bar {}; foo,bar<2>> x; -- Summary: Invalid ambiguity on partial class specialization matching Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rodolfo at rodsoft dot org GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45012