comparison clang/test/SemaTemplate/instantiate-member-class.cpp @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children
comparison
equal deleted inserted replaced
172:9fbae9c8bf63 173:0572611fdcc8
41 41
42 X<int>::X *xi; // expected-error{{qualified reference to 'X' is a constructor name rather than a type}} 42 X<int>::X *xi; // expected-error{{qualified reference to 'X' is a constructor name rather than a type}}
43 X<float>::X *xf; // expected-error{{qualified reference to 'X' is a constructor name rather than a type}} 43 X<float>::X *xf; // expected-error{{qualified reference to 'X' is a constructor name rather than a type}}
44 44
45 void test_naming() { 45 void test_naming() {
46 c1 = c2; // expected-error{{assigning to 'X<int>::C *' from incompatible type 'X<float>::C *'}} 46 c1 = c2; // expected-error{{incompatible pointer types assigning to 'X<int>::C *' from 'X<float>::C *'}}
47 xi = xf; // expected-error{{assigning to 'X<int>::X<int> *' from incompatible type 'X<float>::X<float> *'}} 47 xi = xf; // expected-error{{incompatible pointer types assigning to 'X<int>::X<int> *' from 'X<float>::X<float> *'}}
48 // FIXME: error above doesn't print the type X<int>::X cleanly! 48 // FIXME: error above doesn't print the type X<int>::X cleanly!
49 } 49 }
50 50
51 void test_instantiation(X<double>::C *x, 51 void test_instantiation(X<double>::C *x,
52 X<float>::D::E *e, 52 X<float>::D::E *e,