www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 718] New: Internal error: ../ztc/cgcod.c 562

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=718

           Summary: Internal error: ../ztc/cgcod.c 562
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


(Originall posted by Tiago Gasiba <tiago.gasiba gmail.com> on 2005-11-28 as
news:dmeulv$2542$1 digitaldaemon.com)














test cases:
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_A1.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_A3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_B1.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_B3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_C1.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_C3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_D1.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_D3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_E1.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_E3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_F1.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_F3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_G1.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_G3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_H1.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_H3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_I3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_J3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_L3.d
http://dstress.kuehne.cn/nocompile/b/bug_cgcod_562_M3.d


-- 
Dec 22 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=718


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
           Keywords|                            |ice-on-invalid-code





A reduced testcase:

void test(byte[] data) {
    data[0] /= cast(cfloat) data.length;
}

void main(){
    byte[1] array;
    test(array);
}


-- 
Sep 18 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=718


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed dmd 1.023 and 2.007


-- 
Nov 03 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=718


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
            Summary|Internal error:             |ICE with   int /=
                   |../ztc/cgcod.c 562          |cast(creal)
            Version|0.177                       |2.000





The bug_cgcod_562_x1 cases have been fixed, but the bug_cgcod_562_x3 cases
remain. This bug accounts for 20% of the remaining Dstress cases which ICE.
Much simpler test case:

void main(){
   int x;
   x/= cast(creal)1;
}

Internal error: ..\ztc\cgcod.c 564

Applies to DMD2.028 as well.


-- 
Apr 16 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=718


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch





The patch for bug 3059 fixes this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 09 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=718






In fact this bug is now 66% of the remaining dstress cases which ICE, and also
10% of the remaining dstress "unexpected pass" errors...
Of course, it's pretty ridiculous that Thomas put in 36 test cases for this one
bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 21 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=718


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED



02:11:38 PDT ---
Fixed dmd 1.048 and 2.033

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 06 2009