On Mon, Mar 16, 2026 at 03:54:51PM +0100, Jakub Jelinek wrote:
> 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?

No, but Barry says he'll update P3795 to say "function parameter of non-void
type".

Marek

Reply via email to