www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Regression in common type inference of delegates

reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
Tried to compile an old project of mine today, and ran into this:

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

It used to work in 2.092, but no longer works in 2.094.  :-(

This is a problem for me because the code base in question contains a
LOT of literals of this sort, and rewriting all of that to use whatever
workaround would be a huge undertaking.


T

-- 
War doesn't prove who's right, just who's left. -- BSD Games' Fortune
Sep 29 2020
next sibling parent Stefan Koch <uplink.coder googlemail.com> writes:
On Wednesday, 30 September 2020 at 05:50:45 UTC, H. S. Teoh wrote:
 Tried to compile an old project of mine today, and ran into 
 this:

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

 It used to work in 2.092, but no longer works in 2.094.  :-(

 This is a problem for me because the code base in question 
 contains a LOT of literals of this sort, and rewriting all of 
 that to use whatever workaround would be a huge undertaking.


 T
I am going to look into it.
Sep 29 2020
prev sibling parent Stefan Koch <uplink.coder gmail.com> writes:
On Wednesday, 30 September 2020 at 05:50:45 UTC, H. S. Teoh wrote:
 Tried to compile an old project of mine today, and ran into 
 this:

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

 It used to work in 2.092, but no longer works in 2.094.  :-(

 This is a problem for me because the code base in question 
 contains a LOT of literals of this sort, and rewriting all of 
 that to use whatever workaround would be a huge undertaking.


 T
bisected. https://github.com/dlang/dmd/pull/11292 Fix issue 20938 - Cannot create const arrays mixing immutable and mutable structs with indirections merged-on-behalf-of: Mathias LANG <pro.mathias.lang gmail.com>
Sep 30 2020