public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15766] bad parse error recovery (2 bugs)
[not found] <bug-15766-8661@http.gcc.gnu.org/bugzilla/>
@ 2008-08-18 17:49 ` manu at gcc dot gnu dot org
2009-08-04 9:35 ` manu at gcc dot gnu dot org
1 sibling, 0 replies; 2+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-08-18 17:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from manu at gcc dot gnu dot org 2008-08-18 17:48 -------
These are two different bugs.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|bad error messages |bad parse error recovery (2
| |bugs)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15766
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/15766] bad parse error recovery (2 bugs)
[not found] <bug-15766-8661@http.gcc.gnu.org/bugzilla/>
2008-08-18 17:49 ` [Bug c++/15766] bad parse error recovery (2 bugs) manu at gcc dot gnu dot org
@ 2009-08-04 9:35 ` manu at gcc dot gnu dot org
1 sibling, 0 replies; 2+ messages in thread
From: manu at gcc dot gnu dot org @ 2009-08-04 9:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from manu at gcc dot gnu dot org 2009-08-04 09:34 -------
For the first testcase, A could well be defined without type, so "const A"
would be valid. So we definitely need to emit another error before '&' but the
current one is misleading. Perhaps "parse error before '&'" is a solution. The
alternative is to parse tentatively everything up to a comma or closing
parenthesis and then find out what went wrong. That way, perhaps we can tell
that A was meant to be a type but it is not declared. I wonder what comeau,
clang and other c++ compilers report here.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-06-20 04:13:50 |2009-08-04 09:34:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15766
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-04 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-15766-8661@http.gcc.gnu.org/bugzilla/>
2008-08-18 17:49 ` [Bug c++/15766] bad parse error recovery (2 bugs) manu at gcc dot gnu dot org
2009-08-04 9:35 ` manu at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).