]>
git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Add detailed diagnostics for __builtin_has_unique_object_representations
gcc/cp/ChangeLog:
* constraint.cc (diagnose_trait_expr)
<case CPTK_HAS_UNIQUE_OBJ_REPRESENTATIONS>: Explain failure with
more detail.
* cp-tree.h (type_has_unique_obj_representations): Add explain
parameter.
* tree.cc (record_has_unique_obj_representations): Explain when
returning false.
(type_has_unique_obj_representations): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1z/has-unique-obj-representations5.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>