[Issue 6810] Strange `tuple used as a type` error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 26 12:48:18 PDT 2011


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


Kasumi Hanazuki <k.hanazuki at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k.hanazuki at gmail.com


--- Comment #1 from Kasumi Hanazuki <k.hanazuki at gmail.com> 2011-10-26 12:47:11 PDT ---
Isn't this the correct behavior? -- U = 0 is not an type.

By the precedence of overload resolution, DMD does not instantiate some of the
template function overloads and semantic errors are not reported for them.
If you define each template function alone, DMD(v2.056head) reports a "used as
a type" error for it.

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


More information about the Digitalmars-d-bugs mailing list