mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
29 lines
782 B
D
29 lines
782 B
D
/* https://issues.dlang.org/show_bug.cgi?id=23097
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice23097.d(13): Error: undefined identifier `ICE`
|
|
fail_compilation/ice23097.d(28): Error: template instance `ice23097.ice23097!(S23097)` error instantiating
|
|
fail_compilation/ice23097.d(28): Error: function `ice23097` is not callable using argument types `(S23097)`
|
|
fail_compilation/ice23097.d(28): generating a copy constructor for `struct S23097` failed, therefore instances of it are uncopyable
|
|
fail_compilation/ice23097.d(11): `ice23097.ice23097!(S23097).ice23097(S23097 __param_0)` declared here
|
|
---
|
|
*/
|
|
auto ice23097(I)(I)
|
|
{
|
|
ICE;
|
|
}
|
|
|
|
struct Cpctor23097
|
|
{
|
|
this(ref typeof(this)) { }
|
|
}
|
|
|
|
struct S23097
|
|
{
|
|
Cpctor23097 cpctor;
|
|
}
|
|
|
|
auto fail23097(S23097 s)
|
|
{
|
|
s.ice23097;
|
|
}
|