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

--- Comment #1 from Walter Bright <[email protected]> ---
C11 6.5.3 says:

    _Alignof ( type-name )

so, you're right. It also works in that 4 is returned. But correctly fails
with:

    return _Alignof(1);

This means the C parser is working correctly. The problem happens because the
translation creates a DotIdExp, which (with D) allows both a type and an
expression. The trouble is in the semantic routine.

--

Reply via email to