Thread overview | |||||
---|---|---|---|---|---|
|
May 29, 2011 [Issue 6073] New: Cannot pass __traits(parent, ...) as a template parameter if it is a module | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: kennytm@gmail.com --- Comment #0 from kennytm@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: ------- |
September 21, 2011 [Issue 6073] Cannot pass __traits(parent, ...) as a template parameter if it is a module | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=6073 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, rejects-valid Platform|Other |All OS/Version|Mac OS X |All --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-09-21 05:01:17 PDT --- https://github.com/D-Programming-Language/dmd/pull/400 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 21, 2011 [Issue 6073] Cannot pass __traits(parent, ...) as a template parameter if it is a module | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=6073 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-09-21 13:31:17 PDT --- https://github.com/D-Programming-Language/dmd/commit/aa4d6b362bd71b0b38186d3446dc7a95210f345c https://github.com/D-Programming-Language/dmd/commit/b7089c1af1158d7203144d66567462c43f5db261 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation