adl icon indicating copy to clipboard operation
adl copied to clipboard

ADL compiler infinite loop for infinite type with default.

Open timbod7 opened this issue 5 years ago • 0 comments

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.

timbod7 avatar Feb 20 '20 08:02 timbod7