On Fri, Nov 20, 2020 at 05:23:56PM -0500, Jason Merrill wrote:
> On 11/17/20 2:32 PM, Marek Polacek wrote:
> > --- /dev/null
> > +++ b/gcc/testsuite/g++.dg/warn/Wvexing-parse9.C
> > @@ -0,0 +1,8 @@
> > +// PR c++/97881
> > +// { dg-do compile }
> > +
> > +void
> > +cb ()
> > +{
> > +  volatile _Atomic (int) a1; // { dg-error "expected initializer" }
> 
> I'm not sure it's useful to test for this particular error, since a missing
> initializer isn't the problem with this declaration.  OK either way.

True, I pushed the patch with { dg-error "" } instead.


Thanks,
Marek

Reply via email to