| 1 |
/* https://issues.dlang.org/show_bug.cgi?id=23097 |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/ice23097.d(13): Error: undefined identifier `ICE` |
| 5 |
fail_compilation/ice23097.d(28): Error: template instance `ice23097.ice23097!(S23097)` error instantiating |
| 6 |
fail_compilation/ice23097.d(28): Error: function `ice23097` is not callable using argument types `(S23097)` |
| 7 |
fail_compilation/ice23097.d(28): generating a copy constructor for `struct S23097` failed, therefore instances of it are uncopyable |
| 8 |
fail_compilation/ice23097.d(11): `ice23097.ice23097!(S23097).ice23097(S23097 __param_0)` declared here |
| 9 |
--- |
| 10 |
*/ |
| 11 |
auto ice23097(I)(I) |
| 12 |
{ |
| 13 |
ICE; |
| 14 |
} |
| 15 |
|
| 16 |
struct Cpctor23097 |
| 17 |
{ |
| 18 |
this(ref typeof(this)) { } |
| 19 |
} |
| 20 |
|
| 21 |
struct S23097 |
| 22 |
{ |
| 23 |
Cpctor23097 cpctor; |
| 24 |
} |
| 25 |
|
| 26 |
auto fail23097(S23097 s) |
| 27 |
{ |
| 28 |
s.ice23097; |
| 29 |
} |