[Issue 1193] New: regression: "matches more than one template declaration" doesn't list the location of the conflicting templates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 27 10:57:46 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1193

           Summary: regression: "matches more than one template declaration"
                    doesn't list the location of the conflicting templates
           Product: D
           Version: 1.013
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


# template fn( T ) {
#    void fn() {
#    }
# }
#
# template fn( T ) {
#    void fn( T val ) {
#    }
# }
#
# void main() {
#    mixin fn!(int);
# }

DMD-1.010:
nocompile/t/template_25_A.d(18): template 
dstress.nocompile.t.template_25_A.fn(T) conflicts with 
dstress.nocompile.t.template_25_A.fn(T) at nocompile/t/template_25_A.d(13)

DMD-1.013:
nocompile/t/template_25_A.d(24): mixin fn!(int) matches more than one template 
declaration, fn(T) and fn(T)

test cases:
http://dstress.kuehne.cn/nocompile/t/template_25_A.d
http://dstress.kuehne.cn/nocompile/t/template_class_17.d
http://dstress.kuehne.cn/nocompile/t/template_struct_07.d


-- 



More information about the Digitalmars-d-bugs mailing list