gcc/testsuite/gdc.test/fail_compilation/ice11518.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/ice11518.d(17): Error: class `ice11518.B` matches more than one template declaration: |
| 5 | fail_compilation/ice11518.d(12): `B(T : A!T)` |
| 6 | and: |
| 7 | fail_compilation/ice11518.d(13): `B(T : A!T)` |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | class A(T) {} |
| 12 | class B(T : A!T) {} |
| 13 | class B(T : A!T) {} |
| 14 | |
| 15 | void main() |
| 16 | { |
| 17 | new B!(A!void); |
| 18 | } |