This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23156] Fails valid? (valid according to Comeau anyway)
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2005 08:52:39 -0000
- Subject: [Bug c++/23156] Fails valid? (valid according to Comeau anyway)
- References: <20050731053701.23156.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-07-31 08:52 -------
Subject: Re: New: Fails valid? (valid according to Comeau anyway)
"igodard at pacbell dot net" <gcc-bugzilla@gcc.gnu.org> writes:
| typedef int A;
| struct foo{
| A A;
| };
|
| compiles in 3.4.0 and on Comeau, but on 3.4.2 you get:
The code is ill-formed; no diagnostic required. GCC-3.x, x < 4 used to
issue a diagnostic as a QoI. A regression was introduced in 3.4.0,
and fixed later.
| changedMeaning.cc:3: error: declaration of `A foo::A'
| changedMeaning.cc:1: error: changes meaning of `A' from `typedef int A'
|
| So who's right, you or EDG?
Both, but we're better ;-)
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23156