From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20108 invoked by alias); 21 Jul 2010 03:03:30 -0000 Received: (qmail 18075 invoked by uid 48); 21 Jul 2010 03:03:17 -0000 Date: Wed, 21 Jul 2010 03:03:00 -0000 Message-ID: <20100721030317.18074.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/45012] Invalid ambiguity on partial class specialization matching In-Reply-To: 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/msg02163.txt.bz2 ------- Comment #3 from rodolfo at rodsoft dot org 2010-07-21 03:03 ------- (In reply to comment #2) > This enum value has an anonymous type which is not valid in the > context of templates in C++03/98. It is valid in the current draft of C > ++0x though. But I cannot remember if 4.5 implements that rule for - > std=gnu++0x (-std=c++0x). But I'm not using that anonymous type for template argument deduction (i.e.: foo,bar>), I'm just using in a comparison with an int. But even if I turn it into a named type (i.e.: enum value_t { RUNTIME=-1 };), it doesn't compile. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45012