www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10626] New: ICE with ternary operator and vector operation

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

           Summary: ICE with ternary operator and vector operation
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: nilsbossung googlemail.com


--- Comment #0 from Nils <nilsbossung googlemail.com> 2013-07-12 18:44:07 PDT
---
Fails with v2.064-devel-a0ba3b2.
Works with v2.063.2.

---
cat > test.d << code
void main()
{
    double[2] v;
    bool b;
    double[2] result = (b ? 1 : -1) * v[];
}
code
dmd -c -o- test.d
---
dmd: arrayop.c:525: virtual void BinExp::buildArrayIdent(OutBuffer*,
Expressions*): Assertion `0' failed.
Aborted (core dumped)
---

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


Nils <nilsbossung googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE with ternary operator   |ICE with vector operation
                   |and vector operation        |


--- Comment #1 from Nils <nilsbossung googlemail.com> 2013-07-12 19:31:20 PDT
---
Looks like the ternary operator is innocent. Another trigger:

---
cat > test2.d << code
void main()
{
    double[2] v, x;
    double[2] r = v[] * x[0];
}

code
dmd -c -o- test2.d
---
dmd: arrayop.c:525: virtual void BinExp::buildArrayIdent(OutBuffer*,
Expressions*): Assertion `0' failed.
Aborted (core dumped)
---

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


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |yebblies gmail.com
         AssignedTo|nobody puremagic.com        |yebblies gmail.com


--- Comment #2 from yebblies <yebblies gmail.com> 2013-07-14 00:54:52 EST ---
https://github.com/D-Programming-Language/dmd/pull/2345

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


Nils <nilsbossung googlemail.com> changed:

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


--- Comment #3 from Nils <nilsbossung googlemail.com> 2013-07-20 11:03:21 PDT
---
*** Issue 10681 has been marked as a duplicate of this issue. ***

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



--- Comment #4 from github-bugzilla puremagic.com 2013-08-28 14:46:09 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/0458fe4dcb7f1beb92903ea8b4f6eb1a0e853430
Fix Issue 10626 - ICE with vector operation

Fix regression by forwarding buildArrayIdent and buildArrayLoop to the base
implementation for all other derived expressions.

Add test cases to improve coverage.

https://github.com/D-Programming-Language/dmd/commit/46e495bc953356efbd48bdea75b3f7d0d779d962
Merge pull request #2345 from yebblies/issue10626

Fix Issue 10626 - ICE with vector operation

-- 
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=10626


yebblies <yebblies gmail.com> changed:

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


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh quickfur.ath.cx


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

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