Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 176 - __ctfe variable should not be readable in CTFE
Summary: __ctfe variable should not be readable in CTFE
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: development
Hardware: All All
: --- normal
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2015-02-10 17:52 CET by Ketmar Dark
Modified: 2016-09-17 08:23 CEST (History)
0 users

See Also:


Attachments
__ctfe ctfe fix (966 bytes, patch)
2015-02-10 17:52 CET, Ketmar Dark
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ketmar Dark 2015-02-10 17:52:19 CET
Created attachment 82 [details]
__ctfe ctfe fix

yes, this is a bug (that solved in upcoming 2.067). this code must trigger compilation error:

  static if (__ctfe) {}

i attached a fix, backported from dmd.
Comment 1 Iain Buclaw 2016-09-17 08:23:36 CEST
Would have been merged in when we updated to 2.067.