[cfe-dev] line number of matching curly

Niklas Angare li51ckf02 at sneakemail.com
Fri Sep 10 03:42:58 PDT 2010


"Chris Lattner" wrote:
> On Sep 8, 2010, at 5:49 PM, Niklas Angare wrote:
>> Sorry to barge in, but I'm wondering what the likelihood is of the 
>> compiler
>> actually pointing to the correct left brace.
>
> You're right that the compiler doesn't know what you meant... the idea of 
> pointing out the opening braces is so that *you* know what the compiler is 
> "thinking".

But contrary to what the new diagnostic implies, the compiler didn't think 
about which the matching brace was. It just thought "there are fewer right 
braces than left braces".
 





More information about the cfe-dev mailing list