ObjC PR/6328

Cédric Marcone marcone@mdeo.fr
Wed Jul 3 08:11:00 GMT 2002


Hi Nicola,

in fact my bug report was bugged !!

The real problem is described below, and the test case is attached.

When classes are defined in an external static library, you must
explicitly ask the Objc-Runtime to reference them or it is not aware of
their existence.

To do so, we are calling +initialize manually on those classes. In this
specific case, the Objc-Runtime does not prevent further calls and will
issue a second +initialize when trying to instanciate those classes.

To run the testcase, run the run.sh script.

To test my assertion, comment line 19 in main.m and run again.

Thank you and keep me informed.
-- 
Cédric Marcone
MDEO Lyon
Centre de Technologie
(+33) 4 72 07 92 93
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testcase.tar.gz
Type: application/x-gzip
Size: 1463 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020703/5c2acc29/attachment.bin>


More information about the Gcc-bugs mailing list