Thread overview
[Issue 14757] Wrong error message: Error: multi-dimensional slicing requires template opSlice
Jul 01, 2015
Timothee Cour
Jul 02, 2015
Vladimir Panteleev
Jul 01, 2018
Nick Treleaven
Dec 17, 2022
Iain Buclaw
July 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14757

Timothee Cour <timothee.cour2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2@gmail.com

--- Comment #1 from Timothee Cour <timothee.cour2@gmail.com> ---
forgot to add:
of course the error is that 'foobar()' doesn't compile, but the error message
provided completely hides that, and is confusing, since user did define
opSlice.
I'm guessing implementation uses something such as __traits(compiles, expr) to
check whether user defined the template and error gagging prevents showing it.

Either way, as it is, in larger programs, it can be very hard to figure out the reason of the bug given poor compiler msg

--
July 02, 2015
https://issues.dlang.org/show_bug.cgi?id=14757

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |thecybershadow@gmail.com
           Hardware|x86                         |All
                 OS|Mac OS X                    |All

--
July 01, 2018
https://issues.dlang.org/show_bug.cgi?id=14757

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |nick@geany.org

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14757

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--