[llvm-bugs] [Bug 32073] Clang doesn't align with MSVC/GCC behaviour for an ambiguous method call

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 1 19:01:00 PST 2017


http://bugs.llvm.org/show_bug.cgi?id=32073

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WONTFIX                     |INVALID
             Status|RESOLVED                    |CLOSED

--- Comment #6 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Thanks for filing this!

(In reply to Hugh Bellamy from comment #4)
> Is this related to
> http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#903
> ("Value-dependent integral null pointer constants")

Yes, it's exactly that.

> Odd, considering GCC *can* disambiguate this [...]

Wild guess: GCC is folding the cast of the integer literal into a 0U literal
while parsing, so it can't tell that there was a cast.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170302/86dcd572/attachment-0001.html>


More information about the llvm-bugs mailing list