You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/SemaCXX/cxx2b-consteval-propagate.cpp
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -105,12 +105,13 @@ template <typename T>
105
105
constexprintf(T t);
106
106
107
107
auto a = &f<char>;
108
-
auto b = &f<int>; // expected-error {{immediate function 'f<int>' used before it is defined}}
108
+
auto b = &f<int>; // expected-error {{immediate function 'f<int>' used before it is defined}} \
109
+
// expected-note {{in instantiation of function template specialization}}
109
110
110
111
template <typename T>
111
112
constexprintf(T t) { // expected-note {{'f<int>' defined here}}
112
113
returnid(t); // expected-note {{'f<int>' is an immediate function because its body contains a call to a consteval function 'id' and that call is not a constant expression}}
113
-
}// expected-note {{in instantiation of function template specialization}}
0 commit comments