re PR c++/92695 (P1064R0 - virtual constexpr fails if object taken from array)
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Nov 2019 08:06:09 +0000 (09:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Nov 2019 08:06:09 +0000 (09:06 +0100)
commit99150b053e1840ffc47704a9188e26c889d07517
tree64b302d67363d6fb266d2bdb9a8715e1f4145928
parentf160cd13fb44be3f63a2f43d68befa76f797578f
re PR c++/92695 (P1064R0 - virtual constexpr fails if object taken from array)

PR c++/92695
* decl2.c (mark_used): Don't call note_vague_linkage_fn for pure
virtual functions, even if they are declared inline.

* g++.dg/warn/inline3.C: New test.

From-SVN: r278802
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/inline3.C [new file with mode: 0644]