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


Mike Stump <mrs@windriver.com> writes:

| > Date: Mon, 12 Jun 2000 10:23:54 -0700
| > From: "H . J . Lu" <hjl@valinux.com>
| > To: gcc@gcc.gnu.org
| > Content-Disposition: inline
| > User-Agent: Mutt/1.2i
| 
| > With my libstdc++ v3 "make check" patch, I got some many failures
| > like
| 
| > In file included from /work/gnu/src/gcc-3.0/egcs/libstdc++-v3/bits/std_iostream.h:38,^M
| >                  from
| > 		 /work/gnu/src/gcc-3.0/egcs/libstdc++-v3/backward/iostream.h:32,^M
| >                   from /work/gnu/src/gcc-3.0/egcs/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C:2:^M
| > /work/gnu/src/gcc-3.0/egcs/libstdc++-v3/bits/std_ostream.h:128: ISO C++ does not support `long long'^M 
| 
| > It is caused by -ansi -pedantic-errors and long long. What should we
| > do about it?
| 
| Remove it (the pedwarn call).  ISO C has added them.  ISO C++ follows
| ISO C, unless there is a very specific and very good reason not to.

Unless I'm mistaken, ISO C++ doesn't follow ISO C on the long long
road.

-- Gaby
CodeSourcery, LLC                             http://www.codesourcery.com

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