September 20, 2014 [Issue 13503] New: Bad code with -inline, varargs and auto return | ||||
---|---|---|---|---|
| ||||
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 -- |
Copyright © 1999-2021 by the D Language Foundation