[PATCH] operator!= fixes for C++-20
Dodji Seketeli
dodji@seketeli.org
Thu Sep 7 13:31:13 GMT 2023
Hello Giuliano,
Giuliano Procida <gprocida@google.com> a écrit:
> Without these changes, more recent versions of Clang will start to
> emit diagnostics:
>
> src/abg-ir.cc:15407:13: error: member 'operator!=' found in multiple base classes of different types
> 15407 | return *l == *r;
> | ^
> src/abg-ir.cc:14123:12: note: member found by ambiguous name lookup
> 14123 | type_base::operator!=(const type_base& other) const
> | ^
> src/abg-ir.cc:5162:12: note: member found by ambiguous name lookup
> 5162 | decl_base::operator!=(const decl_base& other) const
> | ^
>
> This fix was contributed by Ilya Biryukov.
>
> * include/abg-ir.h
> (qualified_typedef): Add definition of operator!=.
> (pointer_type_def): Likewise.
> (reference_type_def): Likewise.
> (class_or_union): Likewise.
>
> Reported-by: Ilya Biryukov <ibiryukov@google.com>
> Signed-off-by: Giuliano Procida <gprocida@google.com>
Thanks!
I have applied the patch to mainline.
Cheers,
[...]
--
Dodji
More information about the Libabigail
mailing list