[all-commits] [llvm/llvm-project] b5c2fa: [libc] Mark operator== const to avoid ambiguity in...
Samira Bazuzi via All-commits
all-commits at lists.llvm.org
Wed Oct 11 20:59:27 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b5c2fa14ea771c3333435b18afad1d5e09f69fbe
https://github.com/llvm/llvm-project/commit/b5c2fa14ea771c3333435b18afad1d5e09f69fbe
Author: Samira Bazuzi <bazuzi at users.noreply.github.com>
Date: 2023-10-11 (Wed, 11 Oct 2023)
Changed paths:
M libc/src/stdio/printf_core/core_structs.h
Log Message:
-----------
[libc] Mark operator== const to avoid ambiguity in C++20. (#68805)
C++20 will automatically generate an operator== with reversed operand
order, which is ambiguous with the written operator== when one argument
is marked const and the other isn't.
This operator currently triggers -Wambiguous-reversed-operator at usage
site libc/test/UnitTest/PrintfMatcher.cpp:28.
More information about the All-commits
mailing list