Thread overview
[Issue 8801] New: assigning to __ctfe crashes the compiler
Oct 21, 2012
Walter Bright
October 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8801

           Summary: assigning to __ctfe crashes the compiler
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: monarchdodra@gmail.com


--- Comment #0 from monarchdodra@gmail.com 2012-10-11 06:44:49 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8801



--- Comment #1 from github-bugzilla@puremagic.com 2012-10-20 18:20:44 PDT ---
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().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8801


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
            Version|unspecified                 |D2
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------