www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10782] New: dmd segfault with string mixin, CTFE, class, enum

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

           Summary: dmd segfault with string mixin, CTFE, class, enum
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: CTFE, ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: nilsbossung googlemail.com


--- Comment #0 from Nils <nilsbossung googlemail.com> 2013-08-08 12:17:17 PDT
---
Works with v2.060. Fails since.

---
cat > test.d << code
enum e = 0;
class C {int x = e;}
string f()
{
    auto c = new C();
    return "";
}
mixin(f());
code
dmd -c -o- test.d
---
Segmentation fault (core dumped)
---

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


Nils <nilsbossung googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|dmd segfault with string    |dmd segfault with string
                   |mixin, CTFE, class, enum    |mixin, CTFE, class,
                   |                            |non-literal initializer


--- Comment #1 from Nils <nilsbossung googlemail.com> 2013-08-08 12:34:04 PDT
---
Happens with other non-literal initializers, too:
class C {int x = int.max;}
class C {int x = 0 + 0;}

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


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

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


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-08-15 03:21:27 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2478

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



--- Comment #3 from github-bugzilla puremagic.com 2013-08-17 18:02:40 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/55447560bcf1a1f2b97083819244f65709aa5f2f
fix Issue 10782 - dmd segfault with string mixin, CTFE, class, non-literal
initializer

https://github.com/D-Programming-Language/dmd/commit/13a0da419abf24549fa8f1caf0dceec373c477cb
Merge pull request #2478 from 9rnsr/fix10782

Issue 10782 - dmd segfault with string mixin, CTFE, class, non-literal
initializer

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


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: -------
Aug 17 2013