This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/12262] New: GCC can't find a class for a selector even if the class was given explicitly
- From: "selez at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2003 13:57:56 -0000
- Subject: [Bug objc/12262] New: GCC can't find a class for a selector even if the class was given explicitly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12262
Summary: GCC can't find a class for a selector even if the class
was given explicitly
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: objc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: selez at mail dot ru
CC: gcc-bugs at gcc dot gnu dot org
selez@barad~> gcc -v
Reading specs from d:/CokeKit/Developer/mingw/bin/../lib/gcc-
lib/mingw32/3.2.3/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --
host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --
enable-languages=c++,f77,objc --disable-win32-registry --disable-shared --
enable-sjlj-exceptions
Thread model: win32
gcc version 3.2.3 (mingw special 20030504-1)
selez@barad~> uname -a
CYGWIN_NT-5.1 barad 1.3.19(0.71/3/2) 2003-01-23 21:31 i686 unknown unknown
Cygwin
selez@barad~> gcc -Wall -save-temps gcc_selectors.m -lobjc
gcc_selectors.m: In function `main':
gcc_selectors.m:13: warning: multiple declarations for method `currentContext'
gcc_selectors.m:4: warning: using `+(A *)currentContext'
gcc_selectors.m:8: warning: also found `+(B *)currentContext'
selez@barad~> cat gcc_selectors.m
#include <objc/objc-api.h>
@interface A
+ (A *)currentContext;
@end
@interface B
+ (B *)currentContext;
@end
int main()
{
[A currentContext];
return 0;
}
@implementation A
+ (A *)currentContext { return nil; }
@end
@implementation B
+ (B *)currentContext { return nil; }
@end