[Issue 1032] New: regression: -g -O run/o/odd_bug_06_B.d

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 7 15:07:50 PST 2007


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

           Summary: regression: -g -O run/o/odd_bug_06_B.d
           Product: DGCC aka GDC
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: thomas-dloop at kuehne.cn


# struct Foo{
#    float[4] array = 1.0f;
#    int count = 10;
# }
# 
# int main(){
#    Foo f;
# 
#    if(f.count != 10){
#       assert(0);
#    }
# 
#    if(f.array.length != 4){
#       assert(0);
#    }
#    if(f.array[0] != 1.0f){
#       assert(0);
#    }
#    if(f.array[1] != 1.0f){
#       assert(0);
#    }
#    if(f.array[2] != 1.0f){
#       assert(0);
#    }
#    if(f.array[3] != 1.0f){
#       assert(0);
#    }
# 
#    return 0;
# }

gdmd-0.23 -g -O run/o/odd_bug_06_B.d
Error: AssertError Failure run/o/odd_bug_06_B.d(28)

test case:
http://dstress.kuehne.cn/run/o/odd_bug_06_B.d


-- 



More information about the D.gnu mailing list