[Issue 24246] ICE: CTFE internal error: literal 'TypeExp' in src/dmd/ctfeexpr.d(439)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 15 19:43:03 UTC 2023


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

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Confirmed issue. As the following issues an error:
---
auto f24246(int i)
{   
    return int; // Error: type `int` is not an expression
}
---

That it's in a conditional expression should not prevent the same error from
being given.

--


More information about the Digitalmars-d-bugs mailing list