[C++ PATCH] Fix ICE on C-only builtin types in C++ (PR c++/37532)

Jason Merrill jason@redhat.com
Wed Sep 17 01:03:00 GMT 2008


Janis Johnson wrote:
> On Tue, 2008-09-16 at 13:37 -0700, Jason Merrill wrote:
>> Jakub Jelinek wrote:
>>> +void
>>> +foo (_Decimal32)	// { dg-error "declared void" }
>>> +{
>>> +}
>>> +			// { dg-error "was not declared" "" { target *-*-* } 5 }
>> This could also be written as
>>
>> { dg-error "declared void|was not declared" }
>>
>> OK with or without that change.
> 
> Please keep them separate, I'm moving the C++ tests over to the
> stricter versions of dg-error/dg-warning that the C tests have
> been using for awhile and each message will need a separate test
> directive.

Would

  // { dg-error "declared void" } { dg-error "was not declared" }

work?

Jason



More information about the Gcc-patches mailing list