www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20677] New: Compilation of bad inline asm in speculative

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

          Issue ID: 20677
           Summary: Compilation of bad inline asm in speculative template
                    instantiation fails with no messages
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dlang-bugzilla thecybershadow.net

//////////////// test.d ////////////////
void badCode()()
{
    asm { hcf; }
}

enum ok = __traits(compiles, badCode());
////////////////////////////////////////

Compiler exits with status 1 and no output.

--
Mar 16