https://issues.dlang.org/show_bug.cgi?id=21798
Issue ID: 21798
Summary: checkaction=context creates temporary of type void
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Example:
=================================================
void issue()
{
assert(main());
}
=================================================
dmd issue.d:
> expression `issue()` of type `void` does not have a boolean value
dmd -checkaction=context issue.d
> variable __stdin.issue.__assertOp2 variables cannot be of type void
> expression issue() is void and has no value
--