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

Re: subscripted value is neither array nor pointer


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


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