www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7162] New: [CTFE] "bool || void" expression crashes dmd

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

           Summary: [CTFE] "bool || void" expression crashes dmd
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com


--- Comment #0 from Denis <verylonglogin.reg gmail.com> 2011-12-24 15:44:57 MSK
---
---
void f() { }

int g()
{
    bool var;
    var || f(); // crashes dmd
    return 0;
}

enum v = g();
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 24 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7162


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au


--- Comment #1 from Don <clugdbug yahoo.com.au> 2011-12-27 00:52:32 PST ---
Related to bug 4711. If 4711 were fixed, CTFE would ICE on AndAnd expressions
as well.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 27 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7162


Walter Bright <bugzilla digitalmars.com> changed:

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


--- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2011-12-28
10:26:37 PST ---
https://github.com/D-Programming-Language/dmd/commit/e2fb2c9ac6df703d96c7981233702ebb4d920198

https://github.com/D-Programming-Language/dmd/commit/48faf09fcdab6a654da8c52e4b26be32b2e5ffd1

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