This is the mail archive of the gcc-bugs@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]

[Bug c++/21038] report unmatched brace as a note


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21038

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org
            Summary|Poor diagnostic             |report unmatched brace as a
                   |                            |note

--- Comment #4 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-10-22 14:27:48 UTC ---
Clang:

/tmp/webcompile/_32245_0.cc:5:11: error: expected '}'
    int k;
          ^
/tmp/webcompile/_32245_0.cc:1:12: note: to match this '{'
void foo() {
           ^
1 error generated.

In the worst case, it will tell you from which point you should start looking.


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