This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: const qualified pointers
- To: gcc-bugs at gcc dot gnu dot org, hvr at hvrlab dot dhs dot org
- Subject: Re: const qualified pointers
- From: Mike Stump <mrs at wrs dot com>
- Date: Mon, 23 Aug 1999 16:49:29 -0700 (PDT)
> 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.