[Issue 18906] Template specialisations should not be stripped if they're not called

2018-11-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18906

Manu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--


[Issue 18906] Template specialisations should not be stripped if they're not called

2018-11-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18906

--- Comment #6 from Manu  ---
But you get the idea...

--


[Issue 18906] Template specialisations should not be stripped if they're not called

2018-11-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18906

--- Comment #5 from Manu  ---
Sorry, it should probably be '=', not ':'...

--


[Issue 18906] Template specialisations should not be stripped if they're not called

2018-11-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18906

RazvanN  changed:

   What|Removed |Added

 CC||razvan.nitu1...@gmail.com

--- Comment #4 from RazvanN  ---
Why is this problematic? That is a template specialization for types that
convert to int so adding the symbol t!int to the object file would not be very
accurate.

--


[Issue 18906] Template specialisations should not be stripped if they're not called

2018-09-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18906

Manu  changed:

   What|Removed |Added

   Keywords||C++, industry
   Severity|normal  |major

--- Comment #3 from Manu  ---
This is actually pretty problematic issue...

--


[Issue 18906] Template specialisations should not be stripped if they're not called

2018-05-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18906

--- Comment #2 from Manu  ---
It's a specialisation.

Someone might call `t!(IDontKnowWhat)(value);`, and if IDontKnowWhat is int, it
should use that specialisation, and if it's not, it should instantiate the
generic unspecialised one.

It also affects function mangling, and extern linkage.

--


[Issue 18906] Template specialisations should not be stripped if they're not called

2018-05-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18906

Nathan S.  changed:

   What|Removed |Added

 CC||n8sh.second...@hotmail.com

--- Comment #1 from Nathan S.  ---
```
  int t(T : int)(int x)
  {
return x * 2;
  }
```

What is the point of the template?

--