This is the mail archive of the
mailing list for the GCC project.
Re: [patch] Fix PR c++/29024
On 9/25/06, Andrew STUBBS <firstname.lastname@example.org> wrote:
Lee Millward wrote:
> On 9/25/06, Andrew STUBBS <email@example.com> wrote:
>> Lee Millward wrote:
>> > This bug is an accepts valid where the presence of a storage class
>> > specifier in a typedef declaration wasn't being diagnosed. The
>> > testcase taken from the PR is:
>> > typedef static int a;
>> > which with current mainline is silently accepted. Whilst looking at
>> > this I noticed the following two testcases are accepted when they
>> > should be rejected:
>> > typedef register int b;
>> > typedef extern int c;
>> Also 'typedef auto int d;', etc.
> That was already rejected before my patch. I included in the testcase
> all those which should be rejected, but previously wasn't, which is
> why there isn't a "typedef auto int foo;" in there.
4.1.1 doesn't reject it.
typedef auto int a;
Hmm, it may have been the testcase I used to for this wasn't totally
accurate then but my patch will pick up this case and reject it like