www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10918] New: ICE involving array ops on real[]

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

           Summary: ICE involving array ops on real[]
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: hsteoh quickfur.ath.cx


--- Comment #0 from hsteoh quickfur.ath.cx 2013-08-28 20:27:51 PDT ---
Code (reduced courtesy of dustmite):
-------------vec.d--------------
static this() {
        (real[][] args...) {
            real[] result;
            result[] = args[0][] / args[1][0];
        }
;

}
--------------------------------

Compile line: dmd -m64 -O -inline -unittest -c -ofvec.o vec.d

Compiler output:

--------------------------------
dmd: arrayop.c:526: virtual void BinExp::buildArrayIdent(OutBuffer*,
Expressions*): Assertion `0' failed.
Aborted
--------------------------------

Tested on git HEAD (0362ae81d1cba6d2c4a135e40c40ddaf5617601f). This code used
to work in earlier versions of DMD (I didn't check exactly when it broke, but
I'm pretty sure 2.063.2 worked).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 28 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10918



--- Comment #1 from hsteoh quickfur.ath.cx 2013-08-28 20:45:45 PDT ---
git bisect revealed the offending commit:
c5297b8ba310029438dc332152ec173a7387fead

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10918



--- Comment #2 from hsteoh quickfur.ath.cx 2013-08-28 20:55:07 PDT ---
Cf. https://github.com/D-Programming-Language/dmd/pull/2237

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10918


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |henning still-hidden.de


--- Comment #3 from Henning Pohl <henning still-hidden.de> 2013-08-29 12:21:52
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2505

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 29 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10918


Henning Pohl <henning still-hidden.de> changed:

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


--- Comment #4 from Henning Pohl <henning still-hidden.de> 2013-08-29 12:43:51
PDT ---
*** This issue has been marked as a duplicate of issue 10626 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 29 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10918



--- Comment #5 from hsteoh quickfur.ath.cx 2013-08-29 13:15:57 PDT ---
Confirmed fixed in git HEAD (46e495b), thanks!

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