[Issue 18549] name gets overwritten in template definition
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 11 18:21:18 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18549
Johannes Nordhoff <mephisto at nordhoff-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from Johannes Nordhoff <mephisto at nordhoff-online.de> ---
> > the compiler was using the same name for multiple
> > template-definitions.
>
> I don't understand what you mean by this. If you still think the compiler should do something differently here, please feel free to reopen.
>
yeah, the error message should say:
----
sth.d(11): Error: sth.tmpl called with argument types () matches both:
sth.d(6): sth.tmpl!(SS).tmpl()
and:
sth.d(7): sth.tmpl!(tt).tmpl()
----
but instead it says:
----
sth.d(11): Error: sth.tmpl called with argument types () matches both:
sth.d(6): sth.tmpl!(SS).tmpl()
and:
sth.d(7): sth.tmpl!(SS).tmpl()
----
--
More information about the Digitalmars-d-bugs
mailing list