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

          Issue ID: 22051
           Summary: compiler allows compilation of malformed writefln
                    statement, causing run-time crashes
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

// this compiles (but notice the naked percent sign), causing run-time crash

import std.stdio;

void main (){
   bool myvar = true;
   writefln("Bool: %: ", myvar);
}

--

Reply via email to