[Issue 22051] New: compiler allows compilation of malformed writefln statement, causing run-time crashes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 20 07:10:52 UTC 2021
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: nobody at puremagic.com
Reporter: james.p.leblanc at gmail.com
// this compiles (but notice the naked percent sign), causing run-time crash
import std.stdio;
void main (){
bool myvar = true;
writefln("Bool: %: ", myvar);
}
--
More information about the Digitalmars-d-bugs
mailing list