Bug 9338 – Compiler segfaults if try to CTFE member function without valid 'this'

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-17T11:48:00Z
Last change time
2015-06-09T05:10:43Z
Keywords
CTFE, ice, pull
Assigned to
nobody
Creator
szadows

Comments

Comment #0 by szadows — 2013-01-17T11:48:55Z
This code segfaults: ---- mixin template SomeMixin() { void test() { enum members = makeArray(); } string[] makeArray() { return ["a"]; } } class Foo { mixin SomeMixin; } ----
Comment #1 by k.hara.pg — 2013-01-17T23:53:35Z
This is not related to mixin. This code also segfaults: class Foo { void test() { enum members = makeArray(); } string[] makeArray() { return ["a"]; } }
Comment #2 by k.hara.pg — 2013-01-18T00:13:14Z
Comment #3 by github-bugzilla — 2013-01-18T06:22:59Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7982d16e224495cc28787dd93020db7ab01620b9 fix Issue 9338 - Compiler segfaults if try to CTFE member function without valid 'this' https://github.com/D-Programming-Language/dmd/commit/f7e565942292e7edef5b948591afe662cac84e9d Merge pull request #1506 from 9rnsr/fix9338 Issue 9338 - Compiler segfaults if try to CTFE member function without valid 'this'
Comment #4 by github-bugzilla — 2013-02-11T12:20:11Z
Commits pushed to staging at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7982d16e224495cc28787dd93020db7ab01620b9 fix Issue 9338 - Compiler segfaults if try to CTFE member function without valid 'this' https://github.com/D-Programming-Language/dmd/commit/f7e565942292e7edef5b948591afe662cac84e9d Merge pull request #1506 from 9rnsr/fix9338
Comment #5 by github-bugzilla — 2013-02-11T22:49:36Z
Comment #6 by github-bugzilla — 2013-04-18T11:23:09Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c3a9411507a9971c9471e29ca1898bab73f71352 fix Issue 9338 - Compiler segfaults if try to CTFE member function without valid 'this'