www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7553] New: auto template param triggers mixin conflict


           Summary: auto template param triggers mixin conflict
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu

12:38:40 PST ---
dmd 2.058

the code:

template Foo(){
    struct Range{
template Biz(){
    struct Range{

class Bar{
    mixin Foo!() index0;
    mixin Biz!() index1;
    auto to_range(Range)(Range r)


void main(){
    auto r2 =Bar.to_range(1);

the fireworks:

test.d(13): Error: test.Bar.Foo!().Range at test.d(2) conflicts with
test.Bar.Biz!().Range at test.d(6)

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 20 2012