This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9649: [3.3/3.4 regression] ICE in finish_member_declaration at cp/semantics.c:1850 when redeclaring a static member variable
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: <gcc-gnats at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<gendzwil at sedsystems dot ca>,<nobody at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>
- Date: Mon, 5 May 2003 12:09:40 +0200
- Subject: Re: c++/9649: [3.3/3.4 regression] ICE in finish_member_declaration at cp/semantics.c:1850 when redeclaring a static member variable
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9649
Actually, the code is ill-formed. §9.2p1 states "A member shall not be
declared twice in the member-specification, except that a nested class or
member class template can be declared and then later defined". So, this is a
3.3/3.4 regression because 2.95 correctly rejected the code with an error
message.
Giovanni Bajo