Bug 12906 – [CTFE] Static array of structs causes postblit call

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-13T07:57:00Z
Last change time
2014-06-15T02:54:56Z
Keywords
CTFE, pull, wrong-code
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2014-06-13T07:57:51Z
This code should compile: --- struct S { this(this) { assert(0); } } // line 2 static assert({ // line 4 S[1] sarr; return true; }()); // line 7 --- main.d(2): Error: assert(0) failed main.d(7): called from here: (*() => true)() main.d(4): while evaluating: static assert((*() => true)()) ---
Comment #1 by k.hara.pg — 2014-06-14T11:51:33Z
Comment #2 by github-bugzilla — 2014-06-15T02:54:56Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/790212f9a4cc4f1b4348b0973ff818a60cc6579d fix Issue 12906 - [CTFE] Static array of structs causes postblit call https://github.com/D-Programming-Language/dmd/commit/266ab51fb478fa2d0f7c6c5687c1dc935a150bc8 Merge pull request #3665 from 9rnsr/fix12906 [REG2.066a] Issue 12906 - [CTFE] Static array of structs causes postblit call