File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -127,22 +127,22 @@ void f1() {
127
127
// `dependent` should be type-dependent because the noexcept-expression should be value-dependent
128
128
// (it is true if T is int*, false if T is Polymorphic<false, false>* for example)
129
129
dependent.f <void >(); // This should need to be `.template f` to parse as a template
130
- // expected-error @-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
130
+ // expected-warning @-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
131
131
}
132
132
template <typename ... T>
133
133
void f2 () {
134
134
X<noexcept (typeid (*((static_cast <Polymorphic<false , false >*>(nullptr ) && ... && T{}))))> dependent;
135
135
// X<true> when T...[0] is a type with some operator&& which returns int*
136
136
// X<false> when sizeof...(T) == 0
137
137
dependent.f <void >();
138
- // expected-error @-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
138
+ // expected-warning @-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
139
139
}
140
140
template <typename T>
141
141
void f3 () {
142
142
X<noexcept (typeid (*static_cast <T*>(nullptr )))> dependent;
143
143
// X<true> when T is int, X<false> when T is Polymorphic<false, false>
144
144
dependent.f <void >();
145
- // expected-error @-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
145
+ // expected-warning @-1 {{use 'template' keyword to treat 'f' as a dependent template name}}
146
146
}
147
147
template <typename T>
148
148
void f4 () {
You can’t perform that action at this time.
0 commit comments