www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16061] New: 2.071.1-b1 regression -- Works with 2.071


          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 puremagic.com
          Reporter: puneet 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;

May 22 2016