www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8568] New: compile time access of associative array keys results in segfault

reply d-bugmail puremagic.com writes:
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



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: -------
Aug 20 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8568




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: -------
Aug 20 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8568


Don <clugdbug yahoo.com.au> changed:

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



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: -------
Dec 03 2012