Mercurial > hg > CbC > CbC_llvm
diff clang/test/SemaTemplate/instantiate-self.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/clang/test/SemaTemplate/instantiate-self.cpp Mon May 25 11:55:54 2020 +0900 +++ b/clang/test/SemaTemplate/instantiate-self.cpp Tue Jun 08 06:07:14 2021 +0900 @@ -62,10 +62,11 @@ namespace test6 { template<typename T> constexpr T f(T); template<typename T> constexpr T g(T t) { - typedef int arr[f(T())]; // expected-error {{variable length array}} + // FIXME: It'd be nice to say that the function is currently being defined, rather than being undefined. + typedef int arr[f(T())]; // expected-error {{variable length array}} expected-note {{undefined function 'f<int>'}} return t; } - template<typename T> constexpr T f(T t) { + template<typename T> constexpr T f(T t) { // expected-note {{declared here}} typedef int arr[g(T())]; // expected-error {{zero size array}} expected-note {{instantiation of}} return t; }