public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/16816] New: obj-c++ parser error with multi-colon selectors
@ 2004-07-29 5:16 ratmice at yahoo dot com
2004-07-29 5:25 ` [Bug objc++/16816] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: ratmice at yahoo dot com @ 2004-07-29 5:16 UTC (permalink / raw)
To: gcc-bugs
using the objc-improvements-branch checked out 07-28
main.mm: In function `int main()':
main.mm:15: error: expected `)' before '::' token
main.mm:15: error: expected `,' or `;' before '::' token
anyways.. this same file compiles correctly as a .m
#include <objc/Object.h>
@interface Foo : Object
-(int)foo:(id)bar :(id)baz;
@end
@implementation Foo
-(int)foo:(id)bar :(id)baz
{
return 0;
}
@end
int main()
{
SEL foo = @selector(foo::);
return 0;
}
--
Summary: obj-c++ parser error with multi-colon selectors
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ratmice at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
@ 2004-07-29 5:25 ` pinskia at gcc dot gnu dot org
2004-08-13 2:28 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-29 5:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-29 05:25 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |zlaski at apple dot com
Status|UNCONFIRMED |NEW
Component|other |objc++
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2004-07-29 05:25:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
2004-07-29 5:25 ` [Bug objc++/16816] " pinskia at gcc dot gnu dot org
@ 2004-08-13 2:28 ` pinskia at gcc dot gnu dot org
2005-07-02 2:14 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-13 2:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-13 02:28 -------
This all has to do with :: being a token in C++ while :: being two in C.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
2004-07-29 5:25 ` [Bug objc++/16816] " pinskia at gcc dot gnu dot org
2004-08-13 2:28 ` pinskia at gcc dot gnu dot org
@ 2005-07-02 2:14 ` pinskia at gcc dot gnu dot org
2005-07-02 2:52 ` zlaski at apple dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-02 2:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-02 02:14 -------
This still fails on the mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-05-15 01:05:34 |2005-07-02 02:14:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
` (2 preceding siblings ...)
2005-07-02 2:14 ` pinskia at gcc dot gnu dot org
@ 2005-07-02 2:52 ` zlaski at apple dot com
2005-09-03 1:18 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: zlaski at apple dot com @ 2005-07-02 2:52 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |zlaski at apple dot com
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-07-02 02:14:23 |2005-07-02 02:52:31
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
` (3 preceding siblings ...)
2005-07-02 2:52 ` zlaski at apple dot com
@ 2005-09-03 1:18 ` pinskia at gcc dot gnu dot org
2005-09-03 1:31 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-03 1:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-03 01:18 -------
cp_parser_objc_selector_expression should do the same as cp_parser_asm_definition does:
/* If we're allowing GNU extensions, check for the extended assembly
syntax. Unfortunately, the `:' tokens need not be separated by
a space in C, and so, for compatibility, we tolerate that here
too. Doing that means that we have to treat the `::' operator as
two `:' tokens. */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
` (4 preceding siblings ...)
2005-09-03 1:18 ` pinskia at gcc dot gnu dot org
@ 2005-09-03 1:31 ` pinskia at gcc dot gnu dot org
2005-09-03 13:03 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-03 1:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-03 01:31 -------
Sorry Zem to take this way from you but I have a fix. Basicially we have to treat CPP_SCOPE as two
seperate tokens.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|zlaski at apple dot com |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
` (5 preceding siblings ...)
2005-09-03 1:31 ` pinskia at gcc dot gnu dot org
@ 2005-09-03 13:03 ` pinskia at gcc dot gnu dot org
2005-09-08 13:15 ` cvs-commit at gcc dot gnu dot org
2005-09-08 13:15 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-03 13:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-03 13:03 -------
Patch posted: <http://gcc.gnu.org/ml/gcc-patches/2005-09/msg00163.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |09/msg00163.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
` (6 preceding siblings ...)
2005-09-03 13:03 ` pinskia at gcc dot gnu dot org
@ 2005-09-08 13:15 ` cvs-commit at gcc dot gnu dot org
2005-09-08 13:15 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-08 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-08 13:15 -------
Subject: Bug 16816
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2005-09-08 13:14:41
Modified files:
gcc/cp : ChangeLog parser.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/obj-c++.dg: selector-5.mm selector-6.mm
Log message:
2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
PR obj-c++/16816
* obj-c++.dg/selector-5.mm: New test.
* obj-c++.dg/selector-6.mm: New test.
2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
PR obj-c++/16816
* parser.c (cp_parser_objc_selector_expression): Treat CPP_SCOPE as
two CPP_COLON.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4877&r2=1.4878
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.355&r2=1.356
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6028&r2=1.6029
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/obj-c++.dg/selector-5.mm.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/obj-c++.dg/selector-6.mm.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug objc++/16816] obj-c++ parser error with multi-colon selectors
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
` (7 preceding siblings ...)
2005-09-08 13:15 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-08 13:15 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-08 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-08 13:14 -------
Fixed for 4.1.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-09-08 13:15 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-29 5:16 [Bug other/16816] New: obj-c++ parser error with multi-colon selectors ratmice at yahoo dot com
2004-07-29 5:25 ` [Bug objc++/16816] " pinskia at gcc dot gnu dot org
2004-08-13 2:28 ` pinskia at gcc dot gnu dot org
2005-07-02 2:14 ` pinskia at gcc dot gnu dot org
2005-07-02 2:52 ` zlaski at apple dot com
2005-09-03 1:18 ` pinskia at gcc dot gnu dot org
2005-09-03 1:31 ` pinskia at gcc dot gnu dot org
2005-09-03 13:03 ` pinskia at gcc dot gnu dot org
2005-09-08 13:15 ` cvs-commit at gcc dot gnu dot org
2005-09-08 13:15 ` pinskia 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).