Re: [PATCH] c++: Improve redeclared parameter name diagnostic [PR94588]

2020-04-13 Thread Jason Merrill via Gcc-patches
On 4/13/20 7:43 PM, Marek Polacek wrote: While reviewing [basic.scope.param] I noticed we don't show the location of the previous declaration when giving an error about "A parameter name shall not be redeclared in the outermost block of the function definition". Bootstrapped/regtested on x86_64-

[PATCH] c++: Improve redeclared parameter name diagnostic [PR94588]

2020-04-13 Thread Marek Polacek via Gcc-patches
While reviewing [basic.scope.param] I noticed we don't show the location of the previous declaration when giving an error about "A parameter name shall not be redeclared in the outermost block of the function definition". Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? PR c++