[Bug c++/23156] New: Fails valid? (valid according to Comeau anyway)

2005-07-30 Thread igodard at pacbell dot net
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

Re: [Bug c++/23156] New: Fails valid? (valid according to Comeau anyway)

2005-07-31 Thread Gabriel Dos Reis
"igodard at pacbell dot net" <[EMAIL PROTECTED]> 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.