re PR c++/84444 (ICE with __builtin_launder and cast)
authorJakub Jelinek <jakub@redhat.com>
Mon, 19 Feb 2018 19:36:41 +0000 (20:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 19 Feb 2018 19:36:41 +0000 (20:36 +0100)
commit5f92d10993787fa2074ca87117f9b92d4c8a2b3c
tree3627fee54e76c10d34aa38ed7d4a8cd04dc80da2
parent4382537df8cc3d0d8622af606e4ce580d1bb4c80
re PR c++/84444 (ICE with __builtin_launder and cast)

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.

From-SVN: r257822
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/launder8.C [new file with mode: 0644]