digitalmars.D.bugs - [Issue 6476] New: inner template mixin not defined?!
- d-bugmail puremagic.com (56/56) Aug 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6476
- d-bugmail puremagic.com (12/12) Apr 26 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6476
- d-bugmail puremagic.com (12/12) Apr 26 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6476
http://d.puremagic.com/issues/show_bug.cgi?id=6476
Summary: inner template mixin not defined?!
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: ellery-newcomer utulsa.edu
20:21:51 PDT ---
the code:
struct Sequenced(){
struct Inner(){
static exposeType(){
Inner i;
return i;
}
mixin template NodeMixin(){
size_t i;
}
}
}
struct IndexedBy(L...)
{
alias L List;
}
struct MNode(ThisContainer, IndexedBy, Signals, Value){
mixin Sequenced!().Inner!().NodeMixin!() ZZ; // ok
alias Sequenced!() Y0;
alias typeof(Y0.Inner!().exposeType()) Z0;
pragma(msg, Z0);
mixin Z0.NodeMixin!() Z2;
}
class MIC(Value, Args...){
alias MNode!(typeof(this), Args[0],int,Value) ThisNode;
}
void main(){
alias MIC!(int,
IndexedBy!(Sequenced!(),
),
) C;
}
the fireworks:
error13.d(30): Error: mixin
error13.MNode!(MIC,IndexedBy!(Sequenced!()),int,int).MNode.NodeMixin!() is not
defined
error13.d(34): Error: template instance
error13.MNode!(MIC,IndexedBy!(Sequenced!()),int,int) error instantiating
error13.d(38): instantiated from here:
MIC!(int,IndexedBy!(Sequenced!()))
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6476
SomeDude <lovelydear mailmetrash.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lovelydear mailmetrash.com
PDT ---
With 2.059, this compiles and outputs:
PS E:\DigitalMars\dmd2\samples> rdmd bug.d
Inner!()
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 26 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6476
Ellery Newcomer <ellery-newcomer utulsa.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
11:56:19 PDT ---
Cool. Looks like whatever it was that I was trying to work around is also
fixed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 26 2012









d-bugmail puremagic.com 