On Mon, Mar 16, 2026 at 10:41:16AM -0400, Marek Polacek wrote:
> Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk?
> 
> -- >8 --
> Annotations on void parameter don't make much sense so they
> should be rejected, even if the wording isn't currently so
> clear on that.
> 
>       PR c++/123618
> 
> gcc/cp/ChangeLog:
> 
>       * tree.cc (handle_annotation_attribute): Reject annotations on void
>       parameters.
> 
> gcc/testsuite/ChangeLog:
> 
>       * g++.dg/reflect/annotations14.C: New test.

Is there a CWG issue filed for that?

        Jakub

Reply via email to