re PR c++/3698 (improper handling of an extern declared inline function)
authorJakub Jelinek <jakub@redhat.com>
Mon, 16 Jul 2018 07:43:43 +0000 (09:43 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 16 Jul 2018 07:43:43 +0000 (09:43 +0200)
commit9e51f66f9b9178499a88f6a4efcaab14d5d02efb
treea29b2967b04d2b451f6eb679e2e88414e2d2cc8c
parent6fb4417f5e1c1e6af80eca7af26754d39165ab70
re PR c++/3698 (improper handling of an extern declared inline function)

PR c++/3698
PR c++/86208
* cp-gimplify.c (cp_genericize_r): When using extern_decl_map, or
in TREE_USED flag from stmt to h->to.

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

From-SVN: r262678
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr3698.C [new file with mode: 0644]