[Issue 20608] [REG2.087] Cannot pass tuple.expand to auto ref T... template argument pack

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 5 15:14:30 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20608

--- Comment #3 from moonlightsentinel at disroot.org ---
Reduced example:

void foo(T...)(auto ref T args) {}

void main()
{
  enum tup = Tuple();
  foo(tup.expand); // line 6
}

struct Tuple
{
  int expand;
}

foo should probably infer non-ref for enums.

--


More information about the Digitalmars-d-bugs mailing list