This is the mail archive of the gcc@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: long long, C++ testsuite and -ansi -pedantic-errors


On Tue, Jun 13, 2000 at 10:06:56AM +0200, Gabriel Dos Reis wrote:
> "H . J . Lu" <hjl@valinux.com> writes:
> 
> | On Mon, Jun 12, 2000 at 08:01:29PM -0700, Mark Mitchell wrote:
> | > 
> | > libstdc++ V3 needs to have a mode (and it probably does!) where `long
> | > long' isn't use for compilers that don't accept it -- since they don't
> | > need to at this point.  And g++ should probably accept it with a
> | > warning, rather than issuing an error.  At least, that's my two cents;
> | > I'd like to hear Jason's opinion.
> | > 
> | 
> | -ansi defines __STRICT_ANSI__. Can we wrap the long long stuff
> | with __STRICT_ANSI__?
> 
> Please, note that it isn't -ansi that is causing the error. Using
> `long long' in C++ results in a pedwarn. Then, turning a pedwarn into
> an error is just behaviour as documented.
> 

I know that. See my subject. Could you please tell me how cpp can tell
-pedantic-errors is used? Even if cpp does, I don't know how useful
it will be.



-- 
H.J. Lu (hjl@gnu.org)

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