summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/udlit-namespace-ambiguous.C
blob: c67be390f8b8662ccaade6b9e91cc6bd2d88f7f3 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target c++11 } }

int operator""_t (long long unsigned); // { dg-message "note: candidate"}

namespace foo {
  int operator""_t (long long unsigned);  // { dg-message "note: candidate"}
}

using namespace foo;
int var = 10_t; // { dg-error "call of overloaded | is ambiguous" }