This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21038] report unmatched brace as a note
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Oct 2011 14:27:48 +0000
- Subject: [Bug c++/21038] report unmatched brace as a note
- Auto-submitted: auto-generated
- References: <bug-21038-4@http.gcc.gnu.org/bugzilla/>
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.