This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Candidate fix for PR c/7353
- From: Jason Merrill <jason at redhat dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>,"Joseph S. Myers" <jsm28 at cam dot ac dot uk>,Richard Henderson <rth at redhat dot com>,"gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 01 Nov 2002 13:38:29 -0500
- Subject: Re: Candidate fix for PR c/7353
- References: <20021009165533.GA15970@codesourcery.com><67840000.1034182761@warlock.codesourcery.com><20021009182214.GC15970@codesourcery.com><wvlk7jxpymj.fsf@prospero.cambridge.redhat.com><20021101174518.GA18013@codesourcery.com>
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