mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
13 lines
291 B
D
13 lines
291 B
D
/**
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail18057b.d(12): Error: variable `fail18057b.Recursive.field` recursive initialization of field
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=18057
|
|
// Recursive field initializer causes segfault.
|
|
struct Recursive
|
|
{
|
|
int field = Recursive();
|
|
}
|