[Issue 4206] New: type accepted as enum initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 19 00:47:24 PDT 2010


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

           Summary: type accepted as enum initializer
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: r.sagitario at gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2010-05-19 00:47:23 PDT ---
trying to compile the latet phobos revision, I've hit this assert:

std\bind.d(295): Error: static assert  (isTypeTuple!(Tuple!(int))) is false

which boils down to the template isExpressionTuple not returning the correct
value. This is caused by

alias int myint;
enum var = myint;

being accepted as correct syntax while "enum var = int;" is not.

This happens for every DMD version I have tested (latest svn, 2.046, 2.042,
1.056).

-- 
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