[Issue 21471] Backend assertion triggered with `-checkation=context` and `-inline`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 31 14:54:51 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21471

--- Comment #2 from moonlightsentinel at disroot.org ---
Another solution would be to always create a temporary for CallExp.

This would also solve problems like this:

===========================================
extern(C) int puts(const scope char*);

void main()
{
    assert(foo(1));
}

int foo(int i) pure nothrow
{
    debug puts("Hello");
    return i - 1;
}
============================================
Currently outputs:
Hello
Hello

--


More information about the Digitalmars-d-bugs mailing list