[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
Fri Oct 28 09:19:06 UTC 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
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.

--


More information about the Digitalmars-d-bugs mailing list