This now gives error (with -inline only):
Error: true && (enum string defIdx = "default";
) is not an lvalue
Comment #2 by yoplitein — 2015-11-10T19:10:36Z
My own reduction, compiled with -release -inline -O -lib:
void foo()
{
void delegate() test;
bar(test);
}
auto bar(Delegate, Args...)(Delegate deleg, Args args)
{
if(deleg)
return deleg(args);
else
{
alias problematicAlias = void;
return;
}
}
Interestingly, it seems to be caused by the alias.
Comment #3 by slavo5150 — 2018-02-23T10:05:27Z
I cannot reproduce this in 2.078.1 or master (80b606e11c53ef5b55196c83561e635471936f90) on 2018-02-23. Closing as WORKSFORME.