[Issue 1012] cannot instantiate template with no or default arguments without !()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 21 01:15:05 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=1012
Mathias LANG <pro.mathias.lang at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |pro.mathias.lang at gmail.com
Resolution|--- |WONTFIX
--- Comment #12 from Mathias LANG <pro.mathias.lang at gmail.com> ---
The current error message is a bit better:
> test.d(9): Error: template class test.Bar(T = int) is used as a type without instantiation; to instantiate it use Bar!(arguments)
Given that:
- This bug has been open for 12 years
- There is no consensus in the favor of this enhancement
- Walter Bright has spoken against it
It should clearly go through the DIP process to properly assess if there would
be any corner cases, semantic or parsing wise.
--
More information about the Digitalmars-d-bugs
mailing list