blob: d45527a211d8f2f852d6469a4193d58c1bb62a47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// PR c++/88095
// Test class non-type template parameters for literal operator templates.
// Validate that parameter packs are rejected.
// { dg-do compile { target c++20 } }
struct literal_class {
constexpr literal_class(...) { }
// auto operator<=> (const fixed_string&) = default;
};
template <literal_class...>
int operator ""_udl(); // { dg-error "5:literal operator template .int operator\"\"_udl\\(\\). has invalid parameter list" }
|