Thread overview
[Issue 1012] cannot instantiate template with no or default arguments without !()
Oct 20, 2014
Martin Nowak
Dec 10, 2017
Jonathan M Davis
Dec 10, 2017
Jonathan M Davis
May 21, 2019
Mathias LANG
October 20, 2014
https://issues.dlang.org/show_bug.cgi?id=1012

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #10 from Martin Nowak <code@dawg.eu> ---
Here is a use case where the lack of this feature forces us to introduce an MonoTimeImpl template while keeping the default as MonoTime alias. https://github.com/D-Programming-Language/druntime/pull/990#issuecomment-59793264

--
December 10, 2017
https://issues.dlang.org/show_bug.cgi?id=1012

Jonathan M Davis <issues.dlang@jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jack@jackstouffer.com

--- Comment #11 from Jonathan M Davis <issues.dlang@jmdavisProg.com> ---
*** Issue 18028 has been marked as a duplicate of this issue. ***

--
December 10, 2017
https://issues.dlang.org/show_bug.cgi?id=1012

Jonathan M Davis <issues.dlang@jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All
            Version|D1 (retired)                |D2

--
May 21, 2019
https://issues.dlang.org/show_bug.cgi?id=1012

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #12 from Mathias LANG <pro.mathias.lang@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.

--