[Issue 7566] New: compiler works incorrectly when debug{} statements are present, ver 2.057
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 23 07:43:35 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7566
Summary: compiler works incorrectly when debug{} statements are
present, ver 2.057
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: tbolsh at gmail.com
--- Comment #0 from Timofei Bolshakov <tbolsh at gmail.com> 2012-02-23 07:43:33 PST ---
$ more d_compiler_bug_around_debug.d
#!/usr/bin/rdmd -debug
import std.stdio;
void main(){
bool dummy_flag = false;
if( dummy_flag )
debug{ writeln("debug print 1"); }
writeln( "Some real action ..." );
debug{ writeln("debug print 2"); }
else{
writeln( "Some other action ");
}
}
$ ./d_compiler_bug_around_debug.d
Some real action ...
debug print 2
$ dmd -v
DMD32 D Compiler v2.057
Copyright (c) 1999-2011 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/2.0/index.html
...
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list