Bug 21612 – [REG]Incorrect conflict of function overloads

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-02-06T04:52:15Z
Last change time
2021-02-06T14:44:45Z
Assigned to
No Owner
Creator
SHOO

Comments

Comment #0 by zan77137 — 2021-02-06T04:52:15Z
I encountered a strange compile error when trying to build Botan. https://github.com/shoo/Cookbook/runs/1816118185?check_suite_focus=true#step:4:93 I performed minimization with dustmite and obtained the following results: ----------------- struct BigInt { void opAssign(const BigInt ) { } void opAssign(BigInt other) const { } } ----------------- And exec: ----------------- > dmd bigint.d function `bigint.BigInt.opAssign(BigInt other)` conflicts with previous declaration at bigint.d(3) ----------------- This does not happen in dmd 2.094.2. However, with 2.095.0, it seems to occur on both Windows and Linux. Strangely enough, this did not occur with the online compiler. It seems to occur even with dmd master at the moment.
Comment #1 by moonlightsentinel — 2021-02-06T14:44:45Z