subscripted value is neither array nor pointer
Alexandre Oliva
oliva@lsd.ic.unicamp.br
Mon Mar 13 01:04:00 GMT 2000
On Mar 13, 2000, Peter Jordan <pjordan@noname.blackwire.com> wrote:
t-> osd2.linux2.l_i_reserved2[0] =
>> Take a look at the preprocessed code first, it may turn out to be some
>> preprocessing issue, such as the wrong header file getting included or
>> something.
> Urk. I thought it might have been a known "change" and not a bug.
May be, we never know. That's why it always helps to have as much
information as possible.
In the preprocessed code you posted, you'll find:
# 19 "/usr/include/linux/ext2_fs.h" 2 3
[snip]
struct ext2_inode {
[snip]
__u32 l_i_reserved2;
} linux2;
Note, it is not an array, because it comes from
/usr/include/linux/ext2_fs.h, not from .../lib/ext2_fs.h. And there's
something else intriguing me:
> /usr/lib/gcc-lib/i686-pc-linux-gnu/2.96/cpp -lang-c -v -I../../lib -I../../lib [...]
> ignoring duplicate directory `../../lib'
However, the original command line said: -I../../lib -I../../../lib
Can you confirm that the GCC snapshot is indeed modifying the second
-I flag?
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
More information about the Gcc
mailing list