Summary: CTFE Assertion failure (interpret.c) on
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-08-30 10:58:03 PDT ---
import std.string, std.traits, std.conv;

enum E {one, two}
enum dstring[] fields = [EnumMembers!E].to!(dstring[]);
pragma(msg, fields[0].toUpper);

Assertion failure: '((ArrayLiteralExp *)se->e1)->ownedByCtfe' on line 7009 in
file 'interpret.c'

DMD32 2.060 Windows 7

Replace dstring[] with string[] and the error changes to a compile-time error
in std.string.toUpper, which also should not occur (far as I can tell).

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to