[Issue 6519] [CTFE] Problem with inout and enum type inference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 17 08:49:44 PDT 2011


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au
            Summary|[CTFE] Problem with inout   |[CTFE] Problem with inout
                   |                            |and enum type inference


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-08-17 08:49:42 PDT ---
This is an enum bug, not a CTFE problem. Here's a reduced test case:

inout(int) foo(inout int data) {
    return data;
}

enum int e1 = foo(7); // OK
enum e1 = foo(7); // fails!

It thinks that you're trying to declare an enum of type 'inout(int)'.

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