[Issue 18393] REG(v2.078.1=>master) function re-declarations causes conflict, but should not

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 7 23:58:17 UTC 2018


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

--- Comment #4 from Timothee Cour <timothee.cour2 at gmail.com> ---
I'm confused:

https://github.com/dlang/dmd/pull/7577/files
says:
Issue 14147 - Compiler crash on identical functions in a single module
the bugs this fixes are cases of multiply defined functions, not multiply
declared functions:
in your eg in https://github.com/dlang/dmd/pull/7577/files:


the bug i'm reporting below is multiply declared functions:
```
void fun();
void fun();
```

why would this be OK:
```
void f1();
void f1() {}
```

but not this:
```
void f1();
void f1();
void f1() {}
```
?

--


More information about the Digitalmars-d-bugs mailing list