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 other/16816] New: obj-c++ parser error with multi-colon selectors


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


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