Thread overview
[Issue 18839] Crash on getMember of function masking imported template function
May 07, 2018
FeepingCreature
May 07, 2018
FeepingCreature
May 07, 2018
FeepingCreature
Dec 17, 2022
Iain Buclaw
May 05, 2023
RazvanN
May 07, 2018
https://issues.dlang.org/show_bug.cgi?id=18839

--- Comment #1 from FeepingCreature <default_357-line@yahoo.de> ---
Further reduction:

void fun2(T)();

alias fun = fun2;

void fun() { }

pragma(msg, __traits(getMember, foo, "fun").stringof);
static assert(__traits(compiles, __traits(getMember, foo, "fun")));

Note that the order of functions - first alias, then mask - is important.

--
May 07, 2018
https://issues.dlang.org/show_bug.cgi?id=18839

--- Comment #2 from FeepingCreature <default_357-line@yahoo.de> ---
Correction- in that case, only the pragma(msg) crashes.

--
May 07, 2018
https://issues.dlang.org/show_bug.cgi?id=18839

--- Comment #3 from FeepingCreature <default_357-line@yahoo.de> ---
Double correction- I had a local patch I'd forgotten about. Both still crash. Reduction is valid. (Sorry.)

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18839

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
May 05, 2023
https://issues.dlang.org/show_bug.cgi?id=18839

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #4 from RazvanN <razvan.nitu1305@gmail.com> ---
I cannot reproduce this with latest master. I get a successful compilation that
prints "fun()".

--