------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-07 00:46 -------
Introduced by:
2005-12-18  Benjamin Kosnik  <[EMAIL PROTECTED]>

        * include/debug/formatter: Simplify namespace qualifications for
        current, nested-only reality. Add top-level namespace alias,
        namespace debug, for debug-mode containers.
        * include/debug/safe_iterator.h: Same.
        * include/debug/set.h: Same.
        * include/debug/hash_multimap.h: Same.
        * include/debug/hash_set.h: Same.
        * include/debug/bitset
        * include/debug/safe_sequence.h: Same.
        * include/debug/multiset.h: Same.
        * include/debug/safe_base.h: Same.
        * include/debug/functions.h: Same.
        * include/debug/safe_iterator.tcc
        * include/debug/hash_multiset.h: Same.
        * include/debug/vector
        * include/debug/map.h: Same.
        * include/debug/deque
        * include/debug/hash_map.h: Same.
        * include/debug/string
        * include/debug/macros.h: Same.
        * include/debug/list
        * include/debug/debug.h: Same.
        * include/debug/multimap.h: Same.
        * src/debug.cc: Same.


Hmm, this patch explicately introduced this.  This seems very bad and in fact
against the standard.
In fact this cause us to produce an error and an ICE for the following code:
#include <iostream>

namespace debug
{
  int i;
}
------
t.cc:4: error: namespace alias ‘debug’ not allowed here, assuming
‘std::__gnu_debug’
t.cc:4: internal compiler error: in resume_scope, at cp/name-lookup.c:1372
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The ICE should be filed as a seperate bug.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26142

Reply via email to