[Issue 23626] [REG2.096] Template deduction with auto const ref Args... and delegate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 14 17:43:02 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23626
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
See Also| |https://issues.dlang.org/sh
| |ow_bug.cgi?id=21518
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to johanengelen from comment #1)
> This frontend change "fixes" the errors (3 lines removed):
> diff dmd/mtype.d:
> ```
> /** Extends TypeNext.constConv by also checking for matching attributes
> **/
> override MATCH constConv(Type to)
> {
> - // Attributes need to match exactly, otherwise it's an implicit
> conversion
> - if (this.ty != to.ty || !this.attributesEqual(cast(TypeFunction)
> to))
> - return MATCH.nomatch;
> ```
Those three lines come from https://github.com/dlang/dmd/pull/12090 which was
first released in v2.096.0. This conveniently fits your timeline, so is a
possible introducer of the regression.
--
More information about the Digitalmars-d-bugs
mailing list