public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10603: [3.4 regression] [new parser] failing to print problematic token upon parse error
@ 2003-05-02 14:36 Giovanni Bajo
0 siblings, 0 replies; 3+ messages in thread
From: Giovanni Bajo @ 2003-05-02 14:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/10603; it has been noted by GNATS.
From: "Giovanni Bajo" <giovannibajo@libero.it>
To: "Gerald Pfeifer" <pfeifer@dbai.tuwien.ac.at>,
<gcc-gnats@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>,
<nobody@gcc.gnu.org>,
<gcc-prs@gcc.gnu.org>
Cc:
Subject: Re: c++/10603: [3.4 regression] [new parser] failing to print problematic token upon parse error
Date: Fri, 2 May 2003 16:28:12 +0200
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10603
Let me add that this is not restricted to this very specific case. The new
parser surely needs work in error reporting, because I could post endless
regressions I found on this regard.
Giovanni Bajo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/10603: [3.4 regression] [new parser] failing to print problematic token upon parse error
@ 2003-05-02 14:08 gerald
0 siblings, 0 replies; 3+ messages in thread
From: gerald @ 2003-05-02 14:08 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, pfeifer
Synopsis: [3.4 regression] [new parser] failing to print problematic token upon parse error
State-Changed-From-To: open->analyzed
State-Changed-By: gerald
State-Changed-When: Fri May 2 14:08:19 2003
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10603
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/10603: [3.4 regression] [new parser] failing to print problematic token upon parse error
@ 2003-05-02 14:06 pfeifer
0 siblings, 0 replies; 3+ messages in thread
From: pfeifer @ 2003-05-02 14:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 10603
>Category: c++
>Synopsis: [3.4 regression] [new parser] failing to print problematic token upon parse error
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri May 02 14:06:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: pfeifer@dbai.tuwien.ac.at
>Release: unknown-1.0
>Organization:
>Environment:
gcc version 3.4 20030502 (experimental)
>Description:
Our diagnoses for the following piece of code
used to be
int f(int not) {
return 1-not;
}
rather confusing, but now the source of the problem really
is very hard to see:
x.cc:1: error: expected primary-expression
x.cc:1: error: expected `,' or `;'
(Hint: the problem is that "not" is parsed as "!".)
>How-To-Repeat:
% /sw/gcc-3.2.2/bin/g++ x.cc
x.cc:1: parse error before `!' token
x.cc: In function `int f(...)':
x.cc:2: parse error before `;' token
% gccvs x.cc
x.cc:1: error: expected primary-expression
x.cc:1: error: expected `,' or `;'
>Fix:
Also provide the token that lead to the parse error, so that
the user can see the actual problem.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-02 14:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02 14:36 c++/10603: [3.4 regression] [new parser] failing to print problematic token upon parse error Giovanni Bajo
-- strict thread matches above, loose matches on Subject: below --
2003-05-02 14:08 gerald
2003-05-02 14:06 pfeifer
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).