[Issue 17876] [REG 2.074] Internal error when comparing inout(Foo[][]) with Foo[][]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 4 20:37:30 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17876
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice
CC| |ag0aep6g at gmail.com
Component|phobos |dmd
Hardware|x86_64 |All
Summary|Internal error with red |[REG 2.074] Internal error
|black tree of array of |when comparing
|arrays |inout(Foo[][]) with Foo[][]
OS|Linux |All
Severity|normal |regression
--- Comment #2 from ag0aep6g at gmail.com ---
Reduced (it's the result of using `binaryFun!"a < b"` in the `inout` method
`_firstGreaterEqual`):
----
bool _less(inout size_t[][] a, size_t[][] b) { return a < b; }
----
I don't know if this should compile or throw an error. Any way, it shouldn't
ICE.
dmd2.073.0 accepts the code, making this a regression.
Changing component to dmd as that's where the bug manifests as an ICE. The
actual bug might be in druntime.
--
More information about the Digitalmars-d-bugs
mailing list