This is the mail archive of the gcc@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]

latest GCC breaks Objective-C compiler


Hi,

It looks like the latest top-of-the-trunk GCC breaks the Objective-C compiler.
I've checked in the repository two tests, np-1.m and np-2.m, that show the
error. The programs are very simple, valid Objective-C programs. Here is the
compiler's error message from the first one; the compilation of the second
program gives a similar error:

/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m:18: two or more data types in declaration of `type name'
/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m:18: two or more data types in declaration of `type name'
/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m:18: two or more data types in declaration of `_i_MyObject__methodA'
/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m: In function `-[MyObject methodA]':
/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m:18: two or more data types in declaration of `type name'
/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m: In function `main':
/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m:26: two or more data types in declaration of `type name'
/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m: In function `__objc_tmp_0':
/home/ovidiu/src/gcc/gcc/testsuite/objc/execute/np-1.m:30: two or more data types in declaration of `type name'

The tests exercise a very basic functionality in Objective-C and I think it's
pretty bad the compiler fails like this (it used to work fine until maybe a
month and a half ago). I didn't have time to investigate the errors, I hope
I'll have some time in the next few days. If somebody has ideas what could be
wrong, it would be great.

Regards,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://www.geocities.com/SiliconValley/Monitor/7464/

PGP signature


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