[Issue 15557] Common type of void* and const(int)* should be const(void)*, not const(int)*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 29 06:00:51 UTC 2022


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

ag0aep6g <ag0aep6g at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |ag0aep6g at gmail.com
         Resolution|WORKSFORME                  |---

--- Comment #2 from ag0aep6g <ag0aep6g at gmail.com> ---
(In reply to RazvanN from comment #1)
> This has now been fixed. It seems indeed that the common type is void*,
> however the initial example fails at line 5: test.d(5): Error: cannot
> implicitly convert expression `a` of type `const(int)*` to `void*`, which is
> correct.

This has not been fixed. The common type is `const(void)*`, not `void*`.
Reopening.

--


More information about the Digitalmars-d-bugs mailing list