Thread overview
[Issue 17864] POD struct not equivalent to primitive type in comparison
Oct 02, 2017
Duncan Paterson
Oct 07, 2017
bitwise
Oct 07, 2017
bitwise
Jun 14, 2018
RazvanN
Dec 17, 2022
Iain Buclaw
October 02, 2017
https://issues.dlang.org/show_bug.cgi?id=17864

Duncan Paterson <dunkyp@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dunkyp@gmail.com

--- Comment #1 from Duncan Paterson <dunkyp@gmail.com> ---
I don't think this is an oversight. The table at https://dlang.org/spec/const3.html in section 18.11 says that shared cannot be implicitly converted to mutable. The same code as yours with b marked immutable works. I do think this behaviour is a little surprising.

--
October 07, 2017
https://issues.dlang.org/show_bug.cgi?id=17864

bitwise <nicolas.jinchereau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas.jinchereau@gmail.co
                   |                            |m

--
October 07, 2017
https://issues.dlang.org/show_bug.cgi?id=17864

bitwise <nicolas.jinchereau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|nicolas.jinchereau@gmail.co |
                   |m                           |

--
June 14, 2018
https://issues.dlang.org/show_bug.cgi?id=17864

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
PR: https://github.com/dlang/dmd/pull/8358

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--