www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7781] New: Segmentation fault on 'mixin({return;}());'

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

           Summary: Segmentation fault on 'mixin({return;}());'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: timon.gehr gmx.ch


--- Comment #0 from timon.gehr gmx.ch 2012-03-25 16:04:35 PDT ---
The following code crashes DMD:
mixin({return;}());

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 25 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7781


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Segmentation fault on       |[CTFE] Segmentation fault
                   |'mixin({return;}());'       |on 'mixin({return;}());'


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-03-25 16:42:14 PDT ---
This is CTFE issue.

In interpret.c,
Expression *scrubReturnValue(Loc loc, Expression *e)
-> e == EXP_VOID_INTERPRET

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 25 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7781



--- Comment #2 from github-bugzilla puremagic.com 2012-03-29 16:52:10 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/23e616abd92a8f1729ab5742e95dfaba5c798731
Merge pull request #846 from donc/ctfe7781segfault

Fix issue 7781 [CTFE] Segmentation fault on 'mixin({return;}());'

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


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: -------
Mar 29 2012