www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13503] New: Bad code with -inline, varargs and auto return


          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()

Introduced in https://github.com/D-Programming-Language/dmd/pull/2592

Sep 20 2014