[cfe-dev] SemaCXX/using-directive.cpp

Chris Lattner clattner at apple.com
Tue Apr 7 10:12:46 PDT 2009


On Apr 7, 2009, at 9:33 AM, Douglas Gregor wrote:

>
> On Apr 6, 2009, at 9:29 PM, Chris Lattner wrote:
>
>> This test has been failing for me for a long time, with:
>>
>> Notes expected but not seen:
>>  Line 97: forward declaration
>> Notes seen but not expected:
>>  Line 89: forward declaration of 'struct OneTag::X'
>>
>> Should the test just be changed, or is this a real problem?
>
> There's a real problem here. When we hit an ambiguity in type-name  
> lookup, we emit an error and then return one of the answers (for  
> recovery). The problem, however, is that which answer we return  
> isn't stable from one machine to the next.  The solution will be to  
> make Action::getTypeName return a TypeResult, so that we can return  
> an error after emitting the ambiguity diagnostic.
>
> I've XFAIL'd the test, although that'll cause complains on other  
> systems :)

Ok, can you file a bugzilla about this?  Maybe the test should just be  
moved to the bugzilla entry.  That way contributors won't get confused  
about the failing test.

Thanks Doug,

-Chris



More information about the cfe-dev mailing list