[Bug c++/84444] ICE with __builtin_launder and cast

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 3 13:36:00 GMT 2018


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Mar  3 13:36:20 2018
New Revision: 258198

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

        PR c++/84444
        * builtins.c (builtin_mathfn_code): Don't check if CALL_EXPR_FN (t)
        is ADDR_EXPR.

        * g++.dg/cpp1z/launder8.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/launder8.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/builtins.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list