[Issue 6073] New: Cannot pass __traits(parent, ...) as a template parameter if it is a module
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 29 04:02:13 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6073
Summary: Cannot pass __traits(parent, ...) as a template
parameter if it is a module
Product: D
Version: D2
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at gmail.com 2011-05-29 03:57:53 PDT ---
Test case:
--------------
module x;
struct S {}
template T(M...) {
alias int T;
}
alias T!x V; // ok
alias T!(__traits(parent, S)) U; // error
--------------
x.d(8): Error: expression module x is not a valid template value argument
x.d(8): Error: template instance x.T!(module x) error instantiating
--------------
--
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