[Issue 6044] New: Cannot instantiate nested struct template from an alias of struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 22 01:32:57 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6044
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
AssignedTo: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at gmail.com 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
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.
--
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