[Issue 777] New: -inline: assert() with a non-constant message causes code to not compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 30 06:44:49 PST 2006


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

           Summary: -inline: assert() with a non-constant message causes
                    code to not compile
           Product: D
           Version: 0.178
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic, rejects-valid
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: deewiant at gmail.com


void main(char[][] args) {
        foo();
}

void foo() {
        char[] bar;
        assert (true, bar ~ "foo");
}

Errors with "function asdf.foo is a nested function and cannot be accessed from
main" - on line 7 instead of 2, if the error itself weren't bad enough.


-- 



More information about the Digitalmars-d-bugs mailing list