digitalmars.D.bugs - [Issue 13503] New: Bad code with -inline, varargs and auto return
- via Digitalmars-d-bugs (31/31) Sep 20 2014 https://issues.dlang.org/show_bug.cgi?id=13503
https://issues.dlang.org/show_bug.cgi?id=13503 Issue ID: 13503 Summary: Bad code with -inline, varargs and auto return Product: D Version: D2 Hardware: x86 OS: All Status: NEW Keywords: wrong-code Severity: regression Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: thecybershadow gmail.com /////////// test.d ////////// void f1(string[] s...) { assert(s[0] == "Cheese"); } auto f2(string arg) { string result = arg; return result; } void main() { f1(f2("Cheese")); } ///////////////////////////// Introduced in https://github.com/D-Programming-Language/dmd/pull/2592 --
Sep 20 2014