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)

#
# template test( T : T[] ){
#    void test( T[] data ) {
#       data[0] /= cast(cfloat)data.length;
#    }
# }
#
# void main(){
#    byte[1] array;
#    test!(byte[])(array);
# }
#

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




------- Comment #1 from smjg iname.com  2007-09-18 16:07 -------
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




------- Comment #2 from bugzilla digitalmars.com  2007-11-03 21:43 -------
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




------- Comment #3 from clugdbug yahoo.com.au  2009-04-16 03:35 -------
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




--- Comment #4 from Don <clugdbug yahoo.com.au>  2009-06-09 16:41:07 PDT ---
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





--- Comment #5 from Don <clugdbug yahoo.com.au>  2009-07-21 07:14:26 PDT ---
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


--- Comment #6 from Walter Bright <bugzilla digitalmars.com> 2009-10-06
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