[Issue 18243] selective import + overload = private visibility

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 22 13:27:15 UTC 2018


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

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

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

--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
The problem here is that overload sets do not have a protection attribute.
Moreover the symbolIsVisible function in the compiler takes a symbol and then
checks if the most visible overload of that particular overload set is visible.
This, obviously is problematic, since in this case std.math.isNaN is found and
when the check for visibility is made the public overload is considered.

--


More information about the Digitalmars-d-bugs mailing list