[Issue 9276] New: regression(2.061): Forward reference error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 6 20:34:57 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9276
Summary: regression(2.061): Forward reference error
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2013-01-06 20:34:55 PST ---
Created an attachment (id=1175)
Repro test case.
Compiles with 2.060, fails to compile with 2.061.
run 'dmd parser'
The test case is also added as an attachment.
module declaration;
import semantic, visitors, util;
class Declaration{ mixin DownCastMethods!TemplateDecl; }
class TemplateDecl: OverloadableDecl{ mixin Visitors; }
module expression;
import parser;
import util;
class Node{
mixin DownCastMethods!Declaration;
}
class Expression: Node{
}
module hashtable;module parser;
public import expression, declaration;
module semantic;
class Declaration{
mixin Visitors;
}
template Semantic(T) {
private:
struct {
import hashtable;
}
}
import visitors;
class OverloadableDecl: Declaration{
}
module type;
import parser;
class Type: Expression{ } // <- note to Walter.
class BasicType: Type{ }
module util;
string _dgliteral(T...)(){foreach(t;T) return t.stringof; assert(0); }
template DownCastMethods(T...){
enum x = _dgliteral!T;
}
module visitors;
template Visitors(){
mixin Semantic!(typeof(this));
mixin DeepDup!(typeof(this));
}
import type;
template DeepDup(T) if(is(T: BasicType)){}
template DeepDup(T) {}
--
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