public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5928: parse error before `or'
@ 2002-03-12 13:56 Andrew Pinski
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Pinski @ 2002-03-12 13:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/5928; it has been noted by GNATS.
From: Andrew Pinski <pinskia@physics.uc.edu>
To: taneem@eyetap.org
Cc: gcc-gnats@gcc.gnu.org, taneem.ahmed@latticesemi.com
Subject: Re: c++/5928: parse error before `or'
Date: Tue, 12 Mar 2002 16:55:16 -0500
please close this pr, `or' is part of the c++ standard (ISO C++).
and also 2.96 is not a FSF compiler.
Thanks,
Andrew Pinski
> #include <stdio.h>
>
> int func(int or){
> return 0;
> }
>
> int main(int argc, char **argv){
> int or = 1;
> func(or);
> return 0;
> }
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/5928: parse error before `or'
@ 2002-03-12 14:13 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-03-12 14:13 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, taneem.ahmed, taneem
Synopsis: parse error before `or'
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Tue Mar 12 14:13:02 2002
State-Changed-Why:
not a bug. 'or' is an alternative keyword spelling of '|'.
you might want -fno-operator-names to disable that
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5928
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/5928: parse error before `or'
@ 2002-03-12 13:36 taneem
0 siblings, 0 replies; 3+ messages in thread
From: taneem @ 2002-03-12 13:36 UTC (permalink / raw)
To: gcc-gnats; +Cc: taneem.ahmed
>Number: 5928
>Category: c++
>Synopsis: parse error before `or'
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Tue Mar 12 13:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Taneem Ahmed
>Release: gcc version 2.96
>Organization:
>Environment:
Redhat 7.2
>Description:
gcc generates parse error on the following legal code:
#include <stdio.h>
int func(int or){
return 0;
}
int main(int argc, char **argv){
int or = 1;
func(or);
return 0;
}
> gcc or_error.cpp
or_error.cpp:3: parse error before `or'
or_error.cpp: In function `int main (int, char **)':
or_error.cpp:8: parse error before `or'
or_error.cpp:9: parse error before `or'
>How-To-Repeat:
compile the code
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="or_error.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="or_error.cpp"
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgZnVuYyhpbnQgb3IpewoJcmV0dXJuIDA7Cn0KCmludCBt
YWluKGludCBhcmdjLCBjaGFyICoqYXJndil7CglpbnQgb3IgPSAxOwoJZnVuYyhvcik7CglyZXR1
cm4gMDsKfQo=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-03-12 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-12 13:56 c++/5928: parse error before `or' Andrew Pinski
-- strict thread matches above, loose matches on Subject: below --
2002-03-12 14:13 nathan
2002-03-12 13:36 taneem
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).