This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Candidate fix for PR c/7353


On Fri, 1 Nov 2002 09:45:18 -0800, Zack Weinberg <zack@codesourcery.com> wrote:

> On Fri, Nov 01, 2002 at 01:55:48AM -0500, Jason Merrill wrote:
>> This patch causes us to no longer give an error for
>> 
>>   struct A {
>>     typedef int B = 0;
>>   };

> Huh?
>
> $ ./cc1plus -quiet test.c
> test.c:2: error: ISO C++ forbids declaration of `B' with no type

I don't get this error.  It does say 'int', after all...

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]