Bug 6044 – Cannot instantiate nested struct template from an alias of struct

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2011-05-22T01:28:00Z
Last change time
2014-03-19T18:23:43Z
Keywords
rejects-valid
Assigned to
nobody
Creator
kennytm

Comments

Comment #0 by kennytm — 2011-05-22T01:28:45Z
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 A 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.
Comment #1 by lt.infiltrator — 2014-03-19T18:23:31Z
Provided code compiles as of v2.065.