Re: [C++ Patch] PR 32054

2012-05-25 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] PR 32054

2012-05-25 Thread Paolo Carlini
Hi, On 05/25/2012 06:25 PM, Jason Merrill wrote: On 05/24/2012 10:57 PM, Paolo Carlini wrote: +error_at (decl_spec_token_start->location, + "a storage class is not allowed"); Let's give more explanation here so that the user knows that the problem is a storage class on a

Re: [C++ Patch] PR 32054

2012-05-25 Thread Jason Merrill
On 05/24/2012 10:57 PM, Paolo Carlini wrote: + error_at (decl_spec_token_start->location, + "a storage class is not allowed"); Let's give more explanation here so that the user knows that the problem is a storage class on an anonymous union/struct in class

[C++ Patch] PR 32054

2012-05-24 Thread Paolo Carlini
Hi, another simple issue, this one remained assigned to me for a while ;) Anyway, we are not rejecting storage classes for anonymous unions in class scope. Details: I'm handling anonymous structs in the same way, for consistency (but in principle being an extension we could do nothing); the e