[Issue 14560] [REG2.058] Strange -inline behavior
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jun 13 00:19:19 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14560
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull, wrong-code
Summary|[REG2.066] Strange -inline |[REG2.058] Strange -inline
|behavior |behavior
OS|Linux |All
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> ---
Reduced test case:
auto serialize(T)(T value)
{
foreach (i; value) { }
return; // important
}
int main()
{
serialize(["test"]);
return 0;
}
Compiler fix:
https://github.com/D-Programming-Language/dmd/pull/4743
--
More information about the Digitalmars-d-bugs
mailing list