This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: fixes bugs in name lookup via using directives


Ollie Wild wrote:
> On 7/1/07, Mark Mitchell <mark@codesourcery.com> wrote:
>> Does it work to do:
>>
>>   // { dg-error "msg1|msg2" }
> 
> Yes, mostly.  My understanding is this doesn't guarantee both errors
> occur, only that any errors which do occur match one form or the
> other.  This probably isn't a big deal.  I'll defer to your judgment.

Yes, that's all it guarantees, but I think the maintenance savings are
worth that inaccuracy.

> I jumped the gun a little and checked in the patch with the candidate
> errors inline.  Here's a patch to update the ambiguous reference
> errors as well.  Note that using16.C still has one explicit line
> reference because a dg-error and dg-bogus share the same line.

This patch is fine.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]