This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16988] [3.4/3.5 regression] confusing diagnostic for ill-formed object definition
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2004 21:46:49 -0000
- Subject: [Bug c++/16988] [3.4/3.5 regression] confusing diagnostic for ill-formed object definition
- References: <20040811192824.16988.sebor@roguewave.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-08-11 21:46 -------
Confirmed, a regression with the new parser:
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc
x.cc: In function `int main()':
x.cc:3: error: parse error before `bar'
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In function `int main()':
x.cc:3: error: expected primary-expression before "const"
x.cc:3: error: expected `;' before "const"
We shouldn't backtrack so far if we can't parse something.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-08-11 21:46:48
date| |
Summary|confusing diagnostic for |[3.4/3.5 regression]
|ill-formed object definition|confusing diagnostic for
| |ill-formed object definition
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16988