]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice9273a.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice9273a.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice9273a.d(19): Error: constructor `ice9273a.C.__ctor!().this` no match for implicit `super()` call in constructor
5 fail_compilation/ice9273a.d(23): Error: template instance `ice9273a.C.__ctor!()` error instantiating
6 ---
7 */
8
9 template CtorMixin()
10 {
11 this(T)() {}
12 }
13 class B
14 {
15 mixin CtorMixin!();
16 }
17 class C : B
18 {
19 this()() {}
20 }
21 void main()
22 {
23 auto c = new C();
24 }