mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 01:46:41 +00:00

It seems that the sugaring patches had some pretty significant interdependencies, and at least one issue exists that requires part of the concept-sugaring patch. I don't believe this to have anything to do with the increased compile-times that were seen, so hopefully this will fix our problems without further regressions. See https://reviews.llvm.org/rG12cb1cb3720de8d164196010123ce1a8901d8122 for discussion. Differential Revision: https://reviews.llvm.org/D142500
21 lines
280 B
C++
21 lines
280 B
C++
// RUN: %clang_cc1 -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
|
|
struct StringPiece {
|
|
template <typename T,
|
|
typename = decltype(T())>
|
|
StringPiece(T str) {}
|
|
};
|
|
|
|
void f(StringPiece utf8) {}
|
|
|
|
struct S {
|
|
};
|
|
|
|
void G() {
|
|
const auto s = S{};
|
|
StringPiece U{s};
|
|
}
|
|
|