public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23156] New: Fails valid? (valid according to Comeau anyway)
@ 2005-07-31 5:40 igodard at pacbell dot net
2005-07-31 5:46 ` [Bug c++/23156] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2005-07-31 5:40 UTC (permalink / raw)
To: gcc-bugs
typedef int A;
struct foo{
A A;
};
compiles in 3.4.0 and on Comeau, but on 3.4.2 you get:
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?
Ivan
--
Summary: Fails valid? (valid according to Comeau anyway)
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23156
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/23156] Fails valid? (valid according to Comeau anyway)
2005-07-31 5:40 [Bug c++/23156] New: Fails valid? (valid according to Comeau anyway) igodard at pacbell dot net
@ 2005-07-31 5:46 ` pinskia at gcc dot gnu dot org
2005-07-31 8:52 ` [Bug c++/23156] New: " Gabriel Dos Reis
2005-07-31 9:20 ` [Bug c++/23156] " gdr at integrable-solutions dot net
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31 5:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-31 05:39 -------
GCC is. See PR 17353 and [basic.scope.class] of the standard.
*** This bug has been marked as a duplicate of 17353 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23156
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bug c++/23156] New: Fails valid? (valid according to Comeau anyway)
2005-07-31 5:40 [Bug c++/23156] New: Fails valid? (valid according to Comeau anyway) igodard at pacbell dot net
2005-07-31 5:46 ` [Bug c++/23156] " pinskia at gcc dot gnu dot org
@ 2005-07-31 8:52 ` Gabriel Dos Reis
2005-07-31 9:20 ` [Bug c++/23156] " gdr at integrable-solutions dot net
2 siblings, 0 replies; 4+ messages in thread
From: Gabriel Dos Reis @ 2005-07-31 8:52 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
"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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/23156] Fails valid? (valid according to Comeau anyway)
2005-07-31 5:40 [Bug c++/23156] New: Fails valid? (valid according to Comeau anyway) igodard at pacbell dot net
2005-07-31 5:46 ` [Bug c++/23156] " pinskia at gcc dot gnu dot org
2005-07-31 8:52 ` [Bug c++/23156] New: " Gabriel Dos Reis
@ 2005-07-31 9:20 ` gdr at integrable-solutions dot net
2 siblings, 0 replies; 4+ messages in thread
From: gdr at integrable-solutions dot net @ 2005-07-31 9:20 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-31 8:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-31 5:40 [Bug c++/23156] New: Fails valid? (valid according to Comeau anyway) igodard at pacbell dot net
2005-07-31 5:46 ` [Bug c++/23156] " pinskia at gcc dot gnu dot org
2005-07-31 8:52 ` [Bug c++/23156] New: " Gabriel Dos Reis
2005-07-31 9:20 ` [Bug c++/23156] " gdr at integrable-solutions dot net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).