gcc/testsuite/g++.dg/cpp0x/udlit-namespace-ambiguous.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | |
| 3 | int operator""_t (long long unsigned); // { dg-message "note: candidate" } |
| 4 | |
| 5 | namespace foo { |
| 6 | int operator""_t (long long unsigned); // { dg-message "note: candidate" } |
| 7 | } |
| 8 | |
| 9 | using namespace foo; |
| 10 | int var = 10_t; // { dg-error "call of overloaded | is ambiguous" } |