D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7615 - Error aliasing an enum member through an alias of a type inside a struct
Summary: Error aliasing an enum member through an alias of a type inside a struct
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2012-02-29 22:44 UTC by siegelords_abode
Modified: 2012-04-22 14:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description siegelords_abode 2012-02-29 22:44:23 UTC
Works in D1 (1.073) but not in D2 (2.058):

struct A
{
    enum
    {
        E
    }
}

alias A A2;
alias A2.E E2; // Fine

struct B
{
    alias A.E E1; // Fine
    alias A A2;
    alias A2.E E2; // Error: alias test.B.E2 cannot alias an expression 0
}
Comment 1 SomeDude 2012-04-20 02:42:27 UTC
This compiles on dmd 2.059 Win32
Comment 2 siegelords_abode 2012-04-22 14:00:57 UTC
Yes, works for me now too.