[Bug c++/82760] Incorrect code generated for aligned new
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Oct 28 17:05:00 GMT 2017
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.
More information about the Gcc-bugs
mailing list