From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13858 invoked by alias); 26 Mar 2005 04:20:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13834 invoked by alias); 26 Mar 2005 04:20:03 -0000 Date: Sat, 26 Mar 2005 04:20:00 -0000 Message-ID: <20050326042003.13833.qmail@sourceware.org> From: "gdr at integrable-solutions dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050322154540.20589.caolanm@redhat.com> References: <20050322154540.20589.caolanm@redhat.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/20589] error: '' is/uses anonymous type' X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg03064.txt.bz2 List-Id: ------- Additional Comments From gdr at integrable-solutions dot net 2005-03-26 04:20 ------- Subject: Re: error: '' is/uses anonymous type' "bangerth at dealii dot org" writes: | Intuitively, C++ treats unnamed enums differently than named ones, because | in templates the function/class name has to be mangled, and will contain | the name of the template arguments. If the template argument doesn't have | a name, then the compiler can't do its job, so the standard chose to | disallow unnamed enums as template arguments. | I know what the standard says, but the arguments used to make that rule are bogus. Those are on my list of things to fix for C++0x. If it were only mnagling, then the compiler can concoct a unique name for manglaing purposes. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589