[Bug c/99955] gcc.c-torture/execute/pr92618.c violates strict aliasing rules
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 12 06:25:40 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99955
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
handle_vector_size_attribute does:
/* Build back pointers if needed. */
tree new_type = build_vector_type (type, nunits);
/* Build back pointers if needed. */
*node = lang_hooks.types.reconstruct_complex_type (*node, new_type);
But the default reconstruct_complex_type never reapplies the attributes back on
it. (I Have not looked into the c++ front-end's implementation to about the
same).
More information about the Gcc-bugs
mailing list