Thread overview
[Issue 8966] New: ICE when passing cfloat argument with indirection
Nov 06, 2012
Rainer Schuetze
[Issue 8966] ICE(cgcod.c) when passing cfloat argument with indirection
Nov 15, 2012
Walter Bright
Jul 20, 2013
Walter Bright
November 06, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8966

           Summary: ICE when passing cfloat argument with indirection
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: r.sagitario@gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario@gmx.de> 2012-11-06 00:32:43 PST ---
Trying to compile a Win64 debug version of druntime with current githead, I get an ICE when compiling druntime/src/rt/typeinfo/ti_Acfloat.d

A reduced test case is

module test;

void foo(cfloat x)
{
}

cfloat[] a;

void main()
{
    foo(a[0]);
}

building with "dmd -m64 test.d" yields "Internal error: .\backend\cgcod.c 561"

This does not happen when I compile with -m32 or if I use cdouble or creal or if I pass a cfloat that is not read from an array. With optimizations, I get "Internal error: .\backend\cgcod.c 188".

I don't know if this applies to other OS aswell, maybe issue 6772 is related.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8966



--- Comment #1 from github-bugzilla@puremagic.com 2012-11-14 22:08:46 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/10eefc3f5799585d618da90a595d158a22ca5e95 fix Issue 8966 - ICE(cgcod.c) when passing cfloat argument with indirection

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8966


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 16, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8966



--- Comment #2 from github-bugzilla@puremagic.com 2012-11-16 13:49:26 PST ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b319cb6f48ba7a00e9bbd41e42e6ac1d0f99e1e7 fix Issue 8966 - ICE(cgcod.c) when passing cfloat argument with indirection

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8966



--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2013-07-20 12:20:53 PDT ---
Correct test case: https://github.com/D-Programming-Language/dmd/pull/2370

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8966


bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #4 from bearophile_hugs@eml.cc 2013-07-20 12:58:54 PDT ---
But cfloats are deprecated. Isn't it _much_ better to focus the development/debugging efforts on features that are not deprecated?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8966



--- Comment #5 from github-bugzilla@puremagic.com 2013-07-20 20:29:14 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/dc1ca1e958f8b093be3b09dc749254adc6079728 Merge pull request #2370 from WalterBright/test8966

add missing test case for Issue 8966

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