Now with concepts support merged and mostly complete, we do not need -fconcepts-ts (which was also misleading as we were not implementing the TS) and can enable concepts features under C++2a. A warning will be generated if users still attempt to use -fconcepts-ts.
9 lines
435 B
C++
9 lines
435 B
C++
// 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}}
|