[Bug c++/79085] [6/7 Regression] ICE with placement new to unaligned location

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:33:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79085

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:32:55 2018
New Revision: 262076

URL: https://gcc.gnu.org/viewcvs?rev=262076&root=gcc&view=rev
Log:
        Backported from mainline
        2018-03-15  Jakub Jelinek  <jakub@redhat.com>

        PR c++/79085
        * calls.c (expand_call): For TREE_ADDRESSABLE rettype ignore alignment
        check and use address of target always.

        * g++.dg/opt/pr79085.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/opt/pr79085.C
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/calls.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list