[Issue 1224] New: Compilation does not stop on asserts during CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 9 07:56:34 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1224

           Summary: Compilation does not stop on asserts during CTFE
           Product: D
           Version: 1.014
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


int foo2()
{
    int a;
    assert(a);
    a = 1;
    assert(!a);

    return a;
}

void main()
{
    const a = foo2();
}

bugs.d(21): Error: assert(a) failed
bugs.d(23): Error: assert(!a) failed


-- 



More information about the Digitalmars-d-bugs mailing list