[Issue 8601] New: CTFE Assertion failure (interpret.c) on dstring[].toUpper

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 30 10:58:11 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8601

           Summary: CTFE Assertion failure (interpret.c) on
                    dstring[].toUpper
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: callumenator at gmail.com


--- Comment #0 from callumenator at gmail.com 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);

Gives:
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list