https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80334
--- Comment #14 from Alexandre Oliva <aoliva at gcc dot gnu.org> --- Done, bug 87054. The patch in comment 13 fails libstdc++-v3; the language-independent get_object_alignment can't deal with unresolved template expressions, so using the same logic you added to ivopts to adjust the type of the compiler-introduced pointer won't do in build_fold_addr_expr_loc.