Thread overview
[Issue 8568] New: compile time access of associative array keys results in segfault
Aug 20, 2012
Ellery Newcomer
Aug 20, 2012
Ellery Newcomer
Dec 03, 2012
Don
August 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8568

           Summary: compile time access of associative array keys results
                    in segfault
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: ellery-newcomer@utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2012-08-20 11:55:10 PDT ---
dmd 2.060

code:

import std.typetuple;
enum E = ["a":"afd", "b": "fdb"];
pragma(msg, TypeTuple!(E.keys()));
void main(){}

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



--- Comment #1 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2012-08-20 11:56:33 PDT ---
Well, I suppose technically its passing keys to TypeTuple that is causing the segfault.

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


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-12-03 03:58:01 PST ---
This is fixed by my patch to bug 7602 (it's not a pure duplicate, but has the
same root cause).

*** This issue has been marked as a duplicate of issue 7602 ***

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