This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21038] New: Poor diagnostic
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Apr 2005 01:00:37 -0000
- Subject: [Bug c++/21038] New: Poor diagnostic
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In:
void foo() {
int i;
int j;
int k;
you get:
~/ootbc/members/src$ g++ foo.cc
foo.cc: In function `void foo()':
foo.cc:5: error: expected `}' at end of input
The disgnostic should show the line number of the unmatched opener "{". Finding
mismatched brackets can be a real pain in lengthy or nested code such as .h
files for collection template classes.
Ivan
--
Summary: Poor diagnostic
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21038