This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Fix typo in libiberty/configure.in


On Wed, 22 May 2002, DJ Delorie wrote:

> Did this actually cause a compile error?  If so, could you post the
> actual error?  You should be able to take the address of an array.

Taking the address is not the problem. Assigning it to int * is:

CC-513 cc: ERROR File = tst1.c, Line = 6
  A value of type "int (*)[]" cannot be assigned to an entity of type "int
*".

    p = &v;
      ^

Other compilers just issue a warning but Cray's is quite strict in this
respect. Is this actually guaranteed to work in standard C?

Bye

Roman



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