[Issue 1010] Abstract class template does not compile when parametrized with char[]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 23 02:15:13 PDT 2009


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





------- Comment #5 from clugdbug at yahoo.com.au  2009-04-23 04:15 -------
(In reply to comment #4)
> Example and DStress test cases compile in D1.041. The DStress test cases fail
> in D2, because the template parameter is declared as a char[] rather than a
> string.
> 
> C:\> dmd template_class_20_A.d
> template_class_20_A.d(17): template instance Foo!("abc") does not match
> template declaration Foo(char[] bar)
> template_class_20_A.d(17): Error: Foo!("abc") is used as a type
> template_class_20_A.d(17): class dstress.run.t.template_class_20_A.Bar base
> type must be class or interface, not void
> 
> 
> The following code compiles, should this bug be marked as a DStress issue?

No. DStress was only developed for D1. It's never been ported to D2.
You can safely close this bug.


-- 



More information about the Digitalmars-d-bugs mailing list