adl
adl copied to clipboard
ADL compiler infinite loop for infinite type with default.
ADL accepts and generates code for this declaration as expected:
struct X {
X x;
};
but, unfortunately, adding a default sends the compiler into an infinite loop:
struct X {
X x = {};
};
This should result in an error.