Re: [PATCH 1/2] c++: casting array prvalue [PR112658, PR94264]

2023-11-28 Thread Jason Merrill
On 11/28/23 11:51, Patrick Palka wrote: Bootstrapped and regtested on x86-64-pc-linux-gnu, does this look OK for trunk? -- >8 -- Here we deem the array-to-pointer conversions in both calls as invalid, but we fail to issue a diagnostic for the second call, ultimately because cp_build_c_cast does

[PATCH 1/2] c++: casting array prvalue [PR112658, PR94264]

2023-11-28 Thread Patrick Palka
Bootstrapped and regtested on x86-64-pc-linux-gnu, does this look OK for trunk? -- >8 -- Here we deem the array-to-pointer conversions in both calls as invalid, but we fail to issue a diagnostic for the second call, ultimately because cp_build_c_cast doesn't replay errors from build_const_cast_1.