Re: [PATCH] c++: wrong error with MVP and pushdecl [PR64679]

2022-05-04 Thread Jason Merrill via Gcc-patches
On 5/4/22 19:20, Marek Polacek wrote: On Wed, May 04, 2022 at 05:44:45PM -0400, Jason Merrill wrote: On 5/4/22 16:03, Marek Polacek wrote: This patch fixes the second half of 64679. Here we issue a wrong "redefinition of 'int x'" for the following: struct Bar { Bar(int, int, int);

Re: [PATCH] c++: wrong error with MVP and pushdecl [PR64679]

2022-05-04 Thread Marek Polacek via Gcc-patches
On Wed, May 04, 2022 at 05:44:45PM -0400, Jason Merrill wrote: > On 5/4/22 16:03, Marek Polacek wrote: > > This patch fixes the second half of 64679. Here we issue a wrong > > "redefinition of 'int x'" for the following: > > > >struct Bar { > > Bar(int, int, int); > >}; > > > >i

Re: [PATCH] c++: wrong error with MVP and pushdecl [PR64679]

2022-05-04 Thread Jason Merrill via Gcc-patches
On 5/4/22 16:03, Marek Polacek wrote: This patch fixes the second half of 64679. Here we issue a wrong "redefinition of 'int x'" for the following: struct Bar { Bar(int, int, int); }; int x = 1; Bar bar(int(x), int(x), int{x}); // #1 cp_parser_parameter_declaration_list does

[PATCH] c++: wrong error with MVP and pushdecl [PR64679]

2022-05-04 Thread Marek Polacek via Gcc-patches
This patch fixes the second half of 64679. Here we issue a wrong "redefinition of 'int x'" for the following: struct Bar { Bar(int, int, int); }; int x = 1; Bar bar(int(x), int(x), int{x}); // #1 cp_parser_parameter_declaration_list does pushdecl every time it sees a named parameter