[Issue 16061] New: 2.071.1-b1 regression -- Works with 2.071
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun May 22 18:29:33 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16061
Issue ID: 16061
Summary: 2.071.1-b1 regression -- Works with 2.071
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: puneet at coverify.org
$ dmd -c foo.d
Fails with 2.071.1-b1 with error:
bar.d(3): Error: T.Zoo is not a template, it is a overloadset
bar.d(8): Error: template instance bar.Boo!(Foo) error instantiating
foo.d(3): Error: mixin foo.Foo.Bar!() error instantiating
// file foo.d
class Foo {
import bar;
mixin Bar;
}
// file bar.d
class Zoo(V) {}
template Boo(T) {
alias Boo = T.Zoo!T;
}
mixin template Bar() {
class Zoo(V) {}
alias U = typeof(this);
alias BooThis = Boo!U;
}
--
More information about the Digitalmars-d-bugs
mailing list