Thread overview
[Issue 9174] New: [ICE](cast.c line 2463) with ternary operator with mixed alias this types
[Issue 9174] regression(2.057) ice(cast.c) with ternary operator and alias this
Jan 14, 2013
yebblies
Jan 22, 2013
Kenji Hara
Jan 28, 2013
Walter Bright
December 17, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9174

           Summary: [ICE](cast.c line 2463) with ternary operator with
                    mixed alias this types
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2012-12-17 15:57:28 PST ---
struct Foo {
    char x;
    alias x this;
}
void main() {
    auto r = true ? 'A' : Foo();
}


DMD 2.061alpha gives:

Assertion failure: 't1->ty == t2->ty' on line 2463 in file 'cast.c'

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


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, rejects-valid
                 CC|                            |yebblies@gmail.com
           Platform|x86                         |All
            Summary|[ICE](cast.c line 2463)     |regression(2.057)
                   |with ternary operator with  |ice(cast.c) with ternary
                   |mixed alias this types      |operator and alias this
         OS/Version|Windows                     |All
           Severity|normal                      |regression


--- Comment #1 from yebblies <yebblies@gmail.com> 2013-01-14 21:24:51 EST ---
No ice with 2.056.

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


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-22 05:36:35 PST ---
https://github.com/D-Programming-Language/dmd/pull/1533

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



--- Comment #3 from github-bugzilla@puremagic.com 2013-01-28 13:45:11 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/02c0599a6c0fedfc8456aea0cba713299d8d74d3
fix Issue 9174 - regression(2.057) ice(cast.c) with ternary operator and alias
this

Precedence 'alias this' resolving than integral promotion.

https://github.com/D-Programming-Language/dmd/commit/998226026a0b050d5481fe1900c6cb10623f8ce1 Merge pull request #1533 from 9rnsr/fix9126

Issue 9174 - regression(2.057) ice(cast.c) with ternary operator and alias this

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


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: -------