This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix typo in libiberty/configure.in
- From: Roman Lechtchinsky <rl at cs dot tu-berlin dot de>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 May 2002 18:07:27 +0200 (MET DST)
- Subject: 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