Summary: Cannot instantiate nested struct template from an
                    alias of struct
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-05-22 01:28:45 PDT ---
Test case:
struct Maybe {
    struct Impl(T) {

void main() {
    alias Maybe A;
    Maybe.Impl!int v;   // ok
    A.Impl!int u;       // error
x.d(7): Error: alias x.main.A template identifier Impl is not a member of alias
x.d(9): Error: no property 'Impl!(int)' for type 'Maybe'
x.d(9): Error: A.Impl!(int) is used as a type

The error should not appear. Also, the error does not happen in D1.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to