On 4/17/25 10:06 AM, Patrick Palka wrote:
On Wed, 16 Apr 2025, Jason Merrill wrote:
If we already gave an error while parsing a function, we don't also need to
try to explain what's wrong with it when we later try to use it in a
constant-expression. In the new testcase explain_invalid_constexp
On Wed, 16 Apr 2025, Jason Merrill wrote:
> Tested x86_64-pc-linux-gnu, applying to trunk.
>
> -- 8< --
>
> If we already gave an error while parsing a function, we don't also need to
> try to explain what's wrong with it when we later try to use it in a
> constant-expression. In the new testca