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: Funny warning message: greater than minimum


Perhaps this warning belongs under -pedwarn or whatever.  Yes, you have
a potential portability problem, presumably not a problem running with
gcc compatible compilers.  Yes, the standard (presumably just changed to
ISO) sets a minimum string length which a compiler is required to
support.  Apparently, a program, or even a compiler, could use unsigned
char as a subscript to index through a string and be standard
conforming.  For example, the netlib fpp program does this (without even
declaring the subscripts unsigned, which does get you additional
warnings).

Tim Prince
----- Original Message -----
From: "Markus Werle" <markus@lufmech.rwth-aachen.de>
To: <gcc-bugs@gcc.gnu.org>
Sent: Wednesday, August 09, 2000 6:47 AM
Subject: Funny warning message: greater than minimum


> egcs-20000724 on linux yields some funny warning message:
>
> Derivatives.h:2507: warning: string length `609' is greater than the
> minimum length `509' ANSI C is required to support
>
> I believe it should be "... maximum length",
> not minimum length, right?
>
> Btw.:
> 1. How can I stop this new and annoying message?
> All my expression templates are 10 times larger than 509...
>
> 2. Do I have a real world problem with those long names?
> Is this the reason for hp-ld to die all the time?
> I heard of a name mangling feature in gcc. Does it exist?
> Are there problems with instantiations in different compile units.
>
>
> Thanx, Markus
>


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