This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Namespace for <cfoo> headers incorrect?
- From: "Eric Lemings" <eric at lemings dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 28 Mar 2003 13:42:51 -0700
- Subject: Namespace for <cfoo> headers incorrect?
Correct me if I'm wrong but I don't think code like the following is legal
according to the Standard (and I just read the Standard) but I just compiled
it with gcc 3.2.2:
#include <ctime> // or any <cfoo> header
int main (void) {
time (NULL); // or any name in <cfoo>
return (0);
}
The problem is that the Standard says that names in <cfoo> are declared in
the std namespace. The code above should require a using directive or
explicit qualification. No?
Eric.