www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12979] New: Nothrow violation error is hidden by inline

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: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

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.

--
Jun 23 2014