This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
ANSI switches?
- To: libstdc++@sourceware.cygnus.com
- Subject: ANSI switches?
- From: Marc Lepage <mlepage@molecularmining.com>
- Date: Fri, 20 Aug 1999 12:20:13 -0400
- Organization: Molecular Mining Corporation
I'm using GCC 2.95 and have a couple of standardization questions.
First, I am having difficulty finding the "give me ANSI and nothing but ANSI"
switches.
For example, using a non-prototyped function should be an error but GCC 2.95
still only emits an "implicit declaration of function `int foobar(...)'"
warning. It should be an error.
Also, initializing a non-integral static const member is an error yet GCC 2.95
does not complain.
class Foobar { static const double f = 0.1; }; // should be error
Another problem is the lack of "std::" scoping. This is really annoying when
also compiling with other compilers which do place everything in the standard
namespace.
So my question is, which switches should I be using? What are the caveats? I
recall an email to this list about these issues, but can't find it, and can't
find the answers in the man pages.
TIA
--
Marc Lepage
Software Developer
Molecular Mining Corporation
http://www.molecularmining.com/