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: nob...@puremagic.com
        ReportedBy: tbo...@gmail.com


--- Comment #0 from Timofei Bolshakov <tbo...@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: -------

Reply via email to