www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 176] New: __ctfe variable should not be readable in CTFE

Date: Tue, 10 Feb 2015 17:52:19 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

http://bugzilla.gdcproject.org/show_bug.cgi?id=176

            Bug ID: 176
           Summary: __ctfe variable should not be readable in CTFE
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: ketmar ketmar.no-ip.org

Created attachment 82
  --> http://bugzilla.gdcproject.org/attachment.cgi?id=82&action=edit
__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.

-- 
You are receiving this mail because:
You are watching all bug changes.
Feb 10 2015