comparison clang/test/SemaTemplate/dependent-expr.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children c4bab56944e8
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
142 142
143 void h(auto a, decltype(g<char>())*) {} // expected-note {{previous}} 143 void h(auto a, decltype(g<char>())*) {} // expected-note {{previous}}
144 void h(auto a, void*) {} // expected-error {{redefinition}} 144 void h(auto a, void*) {} // expected-error {{redefinition}}
145 145
146 void i(auto a) { 146 void i(auto a) {
147 [](auto a, int = ({decltype(a) i; i * 2;})){}(a); // expected-error {{no matching function}} expected-note {{substitution failure}} 147 [](auto a, int = ({decltype(a) i; i * 2;})){}(a); // expected-error {{invalid operands to binary expression ('decltype(a)' (aka 'void *') and 'int')}} expected-note {{in instantiation of}}
148 } 148 }
149 void use_i() { 149 void use_i() {
150 i(0); 150 i(0);
151 i((void*)0); // expected-note {{instantiation of}} 151 i((void*)0); // expected-note {{instantiation of}}
152 } 152 }