[Issue 13503] New: Bad code with -inline, varargs and auto return
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Sep 20 00:55:50 PDT 2014
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 at puremagic.com
Reporter: thecybershadow at 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
--
More information about the Digitalmars-d-bugs
mailing list