You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
397 B
8 lines
397 B
// RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify %s
|
|
|
|
// expected-error@+3 {{cannot specify any part of a return type in the declaration of a conversion function; use an alias template to declare a conversion to 'auto (Ts &&...) const'}}
|
|
// expected-error@+2 {{conversion function cannot convert to a function type}}
|
|
struct S {
|
|
template <typename... Ts> operator auto()(Ts &&... xs) const;
|
|
};
|