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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from [email protected] ---
That's funny because this compiles:

---
enum Enum : bool { A, B }

struct I{
    void func(Enum e){}
    void func4(Enum a, Enum b)
    {
        (&func)(cast(Enum)(a && b));
    }
    void func3(Enum a, Enum b)
    {
        Enum aa = cast(Enum)(a && b);
        func(aa);
    }
}---

the error message seems totally meaningless when you consider func4.
func3 suggests that the real problem is that it needs a lvalue.

--

Reply via email to