https://issues.dlang.org/show_bug.cgi?id=18260
Basile-z changed:
What|Removed |Added
CC|b2.t...@gmx.com |
--
https://issues.dlang.org/show_bug.cgi?id=18260
Basile-z changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=18260
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=18260
--- Comment #4 from Simen Kjaeraas ---
This seems flaky. The example in comment #3 compiles under 2.078.3, but the
first example still causes DMD to freeze.
--
https://issues.dlang.org/show_bug.cgi?id=18260
--- Comment #3 from Simen Kjaeraas ---
Slightly different version where the given workarounds don't work:
struct R(T) {
// Used 'auto' here, but 'This' or 'R!(const int)' gives same behavior.
// Marking the method
https://issues.dlang.org/show_bug.cgi?id=18260
--- Comment #2 from Andrei Alexandrescu ---
A better workaround:
struct R {
int[] arr;
alias get this;
This get(this This)()
{
return This.init;
}
}
unittest
{
const(R) b = const(R).init;
}
I
https://issues.dlang.org/show_bug.cgi?id=18260
Andrei Alexandrescu changed:
What|Removed |Added
CC||and...@erdani.com
https://issues.dlang.org/show_bug.cgi?id=18260
anonymous4 changed:
What|Removed |Added
Hardware|x86 |All