[Bug c++/13294] New: namespace associations vs. specializations

bkoz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 4 04:37:00 GMT 2003


Implementation of namespace associations unfinished: namespace association
should keep specializations in the namespace where they are defined.

We went back and forth about this, and this is just a note to clarify the
implemenation status.

-benjamin

-----

#include <vector>

struct MyType { };

namespace std 
{
  template<>
  class vector<MyType>
  {
  public:
    vector();
  };

  vector<MyType>::vector() {  }
}

int main()
{
  std::vector<MyType> obj;
  return 0;
}

// Both should be in std::
//00000020 T _ZNSt6vectorI6MyTypeSaIS1_EEC1Ev

// (normal)
//00000020 T _ZN10__gnu_norm6vectorI6MyTypeSaIS1_EEC1Ev

// (debug) ie -D_GLIBCXX_DEBUG
// 00000020 T _ZN15__gnu_debug_def6vectorI6MyTypeSaIS1_EEC1Ev

-- 
           Summary: namespace associations vs. specializations
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bkoz at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



More information about the Gcc-bugs mailing list