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++/16002] [3.4/3.5 regression] Strange error message with new parser


------- 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


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