[Issue 6571] New: typedefs ignore const, shared, immutable etc modifiers when implicitly converting

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 29 08:45:19 PDT 2011


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

           Summary: typedefs ignore const, shared, immutable etc modifiers
                    when implicitly converting
           Product: D
           Version: D1
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: yebblies at gmail.com


--- Comment #0 from yebblies <yebblies at gmail.com> 2011-08-30 01:45:15 EST ---
The following compiles without error on dmd2.055 head, although it includes
casting shared(void*) to void* and const(void*) to void*.  alias doesn't not
have the same problems.

void main()
{   
    typedef void* A;
    void AA(A a) {}
    shared A a;
    const A b;
    AA(a);
    AA(b);
}

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