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: const qualified pointers


> Date: Tue, 24 Aug 1999 01:38:52 +0200 (CEST)
> From: Herbert Valerio Riedel <hvr@hvrlab.dhs.org>
> To: gcc-bugs@gcc.gnu.org

> compiling (gcc 2.95+, and even some older versions) the following as
> C code gives me 2 warnings about incompatible pointer types, but I
> don't understand why... please tell me if this is a bug or if it is
> supposed to be so...

Which answer do you want?  I can give you either.  It is a bug in the
compiler, a future standard for C will mandate this work, but some
older standards didn't have it in it.  It is not supposed to work, the
current standard for C says this doesn't work.

:-)

Further, comp.lang.c is a slightly better place to ask if code is
valid C code.


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