comparison gcc/testsuite/g++.dg/cpp0x/udlit-tmpl-parms-neg.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 // { dg-do compile { target c++11 } } 1 // { dg-do compile { target c++11 } }
2 2
3 class Foo { }; 3 class Foo { };
4 4
5 template<wchar_t...> 5 template<wchar_t...>
6 Foo operator"" _Foo(); // { dg-error "literal operator template|has invalid parameter list" } 6 Foo operator"" _Foo(); // { dg-error "7:literal operator template .Foo operator\"\"_Foo\\(\\). has invalid parameter list" }
7 7
8 template<char> 8 template<char>
9 Foo operator"" _Bar(); // { dg-error "literal operator template|has invalid parameter list" } 9 Foo operator"" _Bar(); // { dg-error "7:literal operator template .Foo operator\"\"_Bar\\(\\). has invalid parameter list" }
10 10
11 template<typename... Type> 11 template<typename... Type>
12 Foo operator"" _Bar(); // { dg-error "literal operator template|has invalid parameter list" } 12 Foo operator"" _Bar(); // { dg-error "7:literal operator template .Foo operator\"\"_Bar\\(\\). has invalid parameter list" }