← Back to index
|
Original Bugzilla link
Bug 11163 – [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong expression
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-10-03T09:54:00Z
Last change time
2013-10-08T04:37:57Z
Keywords
CTFE, ice
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2013-10-03T09:54:35Z
int[] foo() { return [1]; } void main() { immutable a = foo(); pragma(msg, a); } DMD 2.064 alpha gives: test.d(5): Error: cannot implicitly convert expression (foo()) of type int[] to immutable(int[]) Assertion failure: '0' on line 355 in file 'ctfeexpr.c'
Comment #1
by k.hara.pg — 2013-10-03T18:46:33Z
This is a regression in 2.064 git-head.
Comment #2
by bugzilla — 2013-10-08T02:34:31Z
https://github.com/D-Programming-Language/dmd/pull/2641
Comment #3
by github-bugzilla — 2013-10-08T04:35:48Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/71e15b6da92e34f186aede4b89a4c3901db74691
fix Issue 11163 - [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong expression
https://github.com/D-Programming-Language/dmd/commit/c75c0a8156a0c5c91fa485d46c28a0a6f2d0e5ee
Merge pull request #2641 from WalterBright/fix11163 fix Issue 11163 - [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong...