www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21255] New: "overload alias ... forward declaration" when

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

          Issue ID: 21255
           Summary: "overload alias ... forward declaration" when overload
                    set of imported template functions is passed to alias
                    template parameter
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

Consider the following code:

```
--- a.d
void decode()() { }
--- b.d
void decode()() { }
--- test.d
import a : decode;
import b : decode;

void foo(alias A)() { }

void main() { foo!decode; }
```

https://run.dlang.io/is/P00CPB

This results in "Error: overload alias test.decode forward declaration".

--
Sep 16 2020