re PR lto/89358 (Combining -std=c++14 and -std=c++17 objects gives ODR warnings)
authorJan Hubicka <hubicka@ucw.cz>
Sun, 14 Apr 2019 20:56:45 +0000 (22:56 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 14 Apr 2019 20:56:45 +0000 (20:56 +0000)
commitd2a0371d2641e85c5e6ca396029be32204d976df
treefb74dc5db596afc26879acc34a23a9f9156a6f86
parentceae614e1debf582340fe73ca350db93966b24bb
re PR lto/89358 (Combining -std=c++14 and -std=c++17 objects gives ODR warnings)

PR lto/89358
* g++.dg/lto/pr89358_0.C: New testcase.
* g++.dg/lto/pr89358_1.C: New testcase.
* ipa-devirt.c (skip_in_fields_list_p): New.
(odr_types_equivalent_p): Use it.

From-SVN: r270355
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr89358_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr89358_1.C [new file with mode: 0644]