]> gcc.gnu.org Git - gcc.git/commit - gcc/lto/ChangeLog
PR c++/88049 - ICE with undefined destructor and anon namespace.
authorJason Merrill <jason@redhat.com>
Thu, 28 Feb 2019 17:29:48 +0000 (12:29 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 28 Feb 2019 17:29:48 +0000 (12:29 -0500)
commit80f52b400e1fc770c96d5e28ac7343aac3733df9
tree29c6373f0d1eb663d8269220c8ec7be9aec8213e
parent6b7e4afbdc6f9584483c79aa7662c64d9a561e5e
PR c++/88049 - ICE with undefined destructor and anon namespace.

A type in an anonymous namespace can never be merged with one from
another translation unit, so a member of such a type is always its own
prevailing decl.

* lto-symtab.c (lto_symtab_prevailing_virtual_decl): Return early
for a type in an anonymous namespace.

From-SVN: r269283
gcc/lto/ChangeLog
gcc/lto/lto-symtab.c
gcc/testsuite/g++.dg/lto/pr88049_0.C [new file with mode: 0644]
This page took 0.053594 seconds and 5 git commands to generate.