https://issues.dlang.org/show_bug.cgi?id=12979
Issue ID: 12979
Summary: Nothrow violation error is hidden by inline assembler
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: accepts-invalid
Severity: critical
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
Test case:
void main() nothrow
{
throw new Exception("");
version(A) asm { nop; }
}
Without -version=A, the error "Exception is thrown but not caught" is properly
reported. But with -version=A, no error occurs.
--