This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16002] [3.4/3.5 regression] Strange error message with new parser
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2004 07:39:02 -0000
- Subject: [Bug c++/16002] [3.4/3.5 regression] Strange error message with new parser
- References: <20040615153113.16002.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-07-17 07:39 -------
The right thing to do here is to notice that after "double" -- not followed by a
parenthesis -- there are no non-declaration alternatives. Then, we should
commit to the tentative parse, and that would get us a better error message.
In other words, the improvement is to avoid backtracking in this case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16002