Unreviewed patches

Gabriel Dos Reis gdr@codesourcery.com
Fri Feb 1 08:47:00 GMT 2002


Roger Sayle <roger@eyesopen.com> writes:

| http://gcc.gnu.org/ml/gcc-patches/2001-12/msg00297.html
| C++ builtins go in both std and global namespaces.

This patch (at least, as described) makes wrong assumptions.
For example, <string.h> declares std::strlen and ::strlen whereas
<cstring> declares only std::strlen.  A name 'foo' declared by <xxx.h>
behave as if it were declared

    namespace std
    {
       // 'foo' declaration goes here
    }

    using std::foo;

The same should apply to builtins.  And I think builtin names should
begin with a double underscore.  Why do you want to remove them?

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



More information about the Gcc-patches mailing list