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.
9 lines
435 B
9 lines
435 B
// RUN: %clang_cc1 -std=c++2a -x c++ %s -verify
|
|
|
|
// Test parsing of constraint-expressions in cases where the grammar is
|
|
// ambiguous with the expectation that the longest token sequence which matches
|
|
// the syntax is consumed without backtracking.
|
|
|
|
// type-specifier-seq in conversion-type-id
|
|
template <typename T> requires T::operator short
|
|
unsigned int foo(); // expected-error {{C++ requires a type specifier for all declarations}}
|