Re: [C++ Patch] PR 51786

2013-07-09 Thread Paolo Carlini
On 07/09/2013 05:09 AM, Jason Merrill wrote: On 07/08/2013 07:32 PM, Paolo Carlini wrote: + && (CLASS_TYPE_P (decl_specifiers.type) + || TREE_CODE (decl_specifiers.type) == ENUMERAL_TYPE)) You can use OVERLOAD_TYPE_P here if you want. Ah, I seemed to remember we had something

Re: [C++ Patch] PR 51786

2013-07-08 Thread Jason Merrill
On 07/08/2013 07:32 PM, Paolo Carlini wrote: + && (CLASS_TYPE_P (decl_specifiers.type) + || TREE_CODE (decl_specifiers.type) == ENUMERAL_TYPE)) You can use OVERLOAD_TYPE_P here if you want. OK either way. Jason

Re: [C++ Patch] PR 51786

2013-07-08 Thread Paolo Carlini
On 07/08/2013 08:01 PM, Jason Merrill wrote: On 07/08/2013 01:49 PM, Paolo Carlini wrote: Ah I see. I take your indication as meaning class *or enum* Yes. Thanks. Thus, as agreed, I tested the below. Ok? Paolo. /// Index: cp/parser.c ==

Re: [C++ Patch] PR 51786

2013-07-08 Thread Jason Merrill
On 07/08/2013 01:49 PM, Paolo Carlini wrote: Ah I see. I take your indication as meaning class *or enum* Yes. Jason

Re: [C++ Patch] PR 51786

2013-07-08 Thread Paolo Carlini
Hi, >On 07/07/2013 12:32 PM, Paolo Carlini wrote: >> -auto int; // { dg-error "multiple types|can only be specified for >variables" } >> +auto int; // { dg-error "multiple types|does not declare anything" } > >This is a regression. Please limit the change to when the type is a >class. Ah I see

Re: [C++ Patch] PR 51786

2013-07-08 Thread Jason Merrill
On 07/07/2013 12:32 PM, Paolo Carlini wrote: -auto int; // { dg-error "multiple types|can only be specified for variables" } +auto int; // { dg-error "multiple types|does not declare anything" } This is a regression. Please limit the change to when the type is a class. Jason