www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9174] New: [ICE](cast.c line 2463) with ternary operator with mixed alias this types

reply d-bugmail puremagic.com writes:
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



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: -------
Dec 17 2012
next sibling parent d-bugmail puremagic.com writes:
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



No ice with 2.056.

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


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

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



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: -------
Jan 22 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9174




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


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: -------
Jan 28 2013
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Jan 28 2013