https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82760
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> --- In cp/call.c: - (**args)[0] = *size; + const_cast<tree&>((*cand->args)[0]) = *size; since in the aligned case we are using a copy align_args of the arguments. Of course it should be done in a way that doesn't require a const_cast.