Bug 17468 – Internal assertion fails during CTFE

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2017-06-04T17:07:00Z
Last change time
2017-08-07T13:16:35Z
Keywords
CTFE, ice, ice-on-valid-code, industry, pull
Assigned to
uplink.coder
Creator
andrei

Comments

Comment #0 by andrei — 2017-06-04T17:07:05Z
To repro: struct S { immutable char* path; @disable this(); this(immutable(char)* path) { this.path = path; } } immutable S CONST_S = S("/tmp".ptr); Compiling this yields: core.exception.AssertError@ddmd/ctfeexpr.d(413): Assertion failure followed by a stack trace.
Comment #1 by uplink.coder — 2017-06-04T18:36:18Z
Comment #2 by github-bugzilla — 2017-06-04T23:48:16Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e7a0c6bfc97bb8d9634db8def7e9f9904ffb864f fix Issue 17468 - Internal Assertion fails during CTFE https://github.com/dlang/dmd/commit/06e77c0b46cbef744266fab3f5752241f07c6606 Merge pull request #6859 from UplinkCoder/fx_on_stable fix Issue 17468 - Internal Assertion fails during CTFE merged-on-behalf-of: Andrei Alexandrescu <[email protected]>
Comment #3 by github-bugzilla — 2017-06-26T19:11:10Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e7a0c6bfc97bb8d9634db8def7e9f9904ffb864f fix Issue 17468 - Internal Assertion fails during CTFE https://github.com/dlang/dmd/commit/06e77c0b46cbef744266fab3f5752241f07c6606 Merge pull request #6859 from UplinkCoder/fx_on_stable
Comment #4 by github-bugzilla — 2017-08-07T13:16:35Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e7a0c6bfc97bb8d9634db8def7e9f9904ffb864f fix Issue 17468 - Internal Assertion fails during CTFE https://github.com/dlang/dmd/commit/06e77c0b46cbef744266fab3f5752241f07c6606 Merge pull request #6859 from UplinkCoder/fx_on_stable