This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libobjc/49882] New: class_getSuperClass() returns nil on a newly allocated, but not registered, class
- From: "nicola at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Jul 2011 07:18:42 +0000
- Subject: [Bug libobjc/49882] New: class_getSuperClass() returns nil on a newly allocated, but not registered, class
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49882
Summary: class_getSuperClass() returns nil on a newly
allocated, but not registered, class
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libobjc
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: nicola@gcc.gnu.org
>From Ludovic Marcotte <ludovic@Sophos.ca> --
> There's a bug with the gcc 4.6 runtime since objc_getSuperClass() on a newly
> allocated - but not registered - class returns nil.
Unfortunately, this is actually a documented behaviour of the GCC 4.6 runtime,
so
we can't really change it in GCC 4.6.x.
But if this is how the Apple runtime behaves, in 4.7.0 we should change our
runtime (and the corresponding documentation) to match.
Thanks