| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
|
| 3 |
class Foo { }; |
| 4 |
|
| 5 |
template<wchar_t...> |
| 6 |
Foo operator ""_Foo(); // { dg-error "7:literal operator template .Foo operator\"\"_Foo\\(\\). has invalid parameter list" } |
| 7 |
|
| 8 |
template<char> |
| 9 |
Foo operator ""_Bar(); // { dg-error "7:literal operator template .Foo operator\"\"_Bar\\(\\). has invalid parameter list" } |
| 10 |
|
| 11 |
template<typename... Type> |
| 12 |
Foo operator ""_Bar(); // { dg-error "7:literal operator template .Foo operator\"\"_Bar\\(\\). has invalid parameter list" } |