This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: subscripted value is neither array nor pointer
- To: Peter Jordan <pjordan at noname dot blackwire dot com>
- Subject: Re: subscripted value is neither array nor pointer
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 13 Mar 2000 06:04:32 -0300
- Cc: gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Cc: Zack Weinberg <zack at wolery dot cumb dot org>
- References: <20000313005405.A30993@noname.blackwire.com>
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