Bug 11371 – core.simd and ctfe

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-28T11:55:00Z
Last change time
2013-12-03T13:18:08Z
Keywords
CTFE, ice
Assigned to
nobody
Creator
john.loughran.colvin

Comments

Comment #0 by john.loughran.colvin — 2013-10-28T11:55:17Z
//simdcrash.d import core.simd; long2 f() { long2 q; return q; } enum long2 v = f(); $dmd simdcrash.d simdcrash.d(5): Error: CTFE internal error: illegal value cast(__vector(long[2]))0L dmd: interpret.c:6420: void VarDeclaration::setValue(Expression*): Assertion `isCtfeValueValid(newval)' failed. Aborted (core dumped)
Comment #1 by ibuclaw — 2013-12-02T05:39:46Z
Comment #2 by github-bugzilla — 2013-12-03T12:56:52Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/19599cbdd6dd64308805deda9b8c6b4a08e70672 Issue 11371 - [CTFE] vector literals are not valid values https://github.com/D-Programming-Language/dmd/commit/f3f0b2b2cb3ee8f55d1da3dd5bbd750bce9d6108 Merge pull request #2916 from ibuclaw/issue11371 Issue 11371 - [CTFE] vector literals are not valid values
Comment #3 by ibuclaw — 2013-12-03T13:18:08Z