This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13658] New: [3.4 Regression] namespace association vs. templates part one


#include <vector>

int main()
{
  // Should use vector specialization for swap, and does not.
  {
    std::vector<int> A;
    std::vector<int> B;
    std::swap(A, B); 
  }

  // Should use vector specialization for swap, and does.
  {
    using namespace std;
    vector<int> A;
    vector<int> B;
    swap(A, B); 
  }

  return 0;
}

-- 
           Summary: [3.4 Regression] namespace association vs. templates
                    part one
           Product: gcc
           Version: 3.4.0
            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: aoliva at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org,jason at redhat dot com,rsandifo at redhat dot com
 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=13658


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]