[Issue 567] Example in spec uses conflicting templates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 11 18:35:51 PST 2006


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


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
           Keywords|                            |diagnostic




------- Comment #3 from smjg at iname.com  2006-12-11 20:35 -------
Under DMD 0.174:

bz567.d(4): template bz567.Foo(T,U) conflicts with bz567.Foo(T) at bz567.d(1)
bz567.d(3): Error: parameter 'T' multiply defined

So it's Foo(T, U) and Foo(T, T) that conflict.  But the fact that it mentions
bz567.Foo(T) and line 1 looks like a bug.  Commenting out every line except 3
or 4 gives the similar

bz567.d(4): template bz567.Foo(T,U) conflicts with bz567.Foo(T,T) at bz567.d(3)
bz567.d(3): Error: parameter 'T' multiply defined


-- 



More information about the Digitalmars-d-bugs mailing list