Thread overview
[Issue 12500] New: ICE in codegen when multiplying an incremented size_t by a double
Mar 31, 2014
JR
Apr 01, 2014
Andrej Mitrovic
Apr 01, 2014
Andrej Mitrovic
March 31, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12500

           Summary: ICE in codegen when multiplying an incremented size_t
                    by a double
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: zorael@gmail.com


--- Comment #0 from JR <zorael@gmail.com> 2014-03-31 12:18:33 PDT ---
[dmd from git; v2.066-devel-75159e4]

void main()
{
    size_t foo;
    ++foo *= 1.5;
}

--> Internal error: backend/cgcs.c 221

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12500


hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |hsteoh@quickfur.ath.cx
           Severity|normal                      |major


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12500


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2014-04-01 12:40:35 CEST ---
I can't reproduce with using latest git-head: f92062c

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12500



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2014-04-01 12:41:15 CEST ---
(In reply to comment #1)
> I can't reproduce with using latest git-head: f92062c

Sorry, wrong! With -m64 I can:

C:\dev\code\d_code> dmd -m64 test.d
DMD v2.066 DEBUG
el:01341804 cnt=0 cs=0 <<=  TYuns long long 013417C4 01341844
 el:013417C4 cnt=0 cs=0 ?  TYdouble 01341C44 01341E44
  el:01341C44 cnt=0 cs=0 >=  TYint 01341784 01341C04
   el:01341784 cnt=0 cs=0 var  TYlong long  foo
   el:01341C04 cnt=0 cs=0 const  TYlong long 0LL
  el:01341E44 cnt=0 cs=0 colon  TYdouble 01341C84 01341E04
   el:01341C84 cnt=0 cs=0 s64_d  TYdouble 01341B84
    el:01341B84 cnt=0 cs=0 var  TYlong long  foo
   el:01341E04 cnt=0 cs=0 +  TYdouble 01341D44 01341DC4
    el:01341D44 cnt=0 cs=0 s64_d  TYdouble 01341D04
     el:01341D04 cnt=0 cs=0 &  TYlong long 01341BC4 01341CC4
      el:01341BC4 cnt=0 cs=0 var  TYlong long  foo
      el:01341CC4 cnt=0 cs=0 const  TYlong long 9223372036854775807LL
    el:01341DC4 cnt=0 cs=0 var  mTYconst|TYdouble  _TMP0
 el:01341844 cnt=0 cs=0 const  TYint 0L
Internal error: backend\cgcs.c 221

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