← Back to index
|
Original Bugzilla link
Bug 8801 – assigning to __ctfe crashes the compiler
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-11T06:44:00Z
Last change time
2012-10-20T19:23:43Z
Assigned to
nobody
Creator
monarchdodra
Comments
Comment #0
by monarchdodra — 2012-10-11T06:44:49Z
2.060 //---- void main() { bool __ctfe = true; } //---- Internal error: ..\ztc\cgcs.c 522 //---- __ctfe is a reserved word, so the code is (arguably) invalid. Still, compiler internal error.
Comment #1
by github-bugzilla — 2012-10-20T18:20:44Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/f6d0cf50a5507de3b4dbd1803f757536d80c3f44
Fix issue 8801 assigning to __ctfe crashes the compiler We need checks in two places, because constructing a variable doesn't call toLvalue().