mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 09:32:20 +00:00
42fd9efa38
that change turns out to not be reasonable: mutating the AST of a parsed template during instantiation is not a sound thing to do, does not work across chained PCH / modules builds, and is in any case a special-case workaround to a more general problem that should be solved centrally. llvm-svn: 249342
13 lines
229 B
C++
13 lines
229 B
C++
// RUN: %clang_cc1 -std=c++11 -emit-llvm-only %s
|
|
|
|
struct X {
|
|
template<typename T> static typename T::type g(T t);
|
|
template<typename T> auto f(T t) -> decltype(g(t));
|
|
void f(...);
|
|
};
|
|
|
|
void test() {
|
|
X().f(0);
|
|
X().f(0);
|
|
}
|