re PR c++/65209 (Broken code with global static variables, invalid pointer when freei...
authorJason Merrill <jason@redhat.com>
Wed, 25 Feb 2015 21:46:29 +0000 (16:46 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 Feb 2015 21:46:29 +0000 (16:46 -0500)
commit2b8f9c8f36033b7ed3a2b89d61db7f1a3fdb0a42
tree592147f21b784a100deceaa9bf9f077ed9b31910
parent76fabbf42df41d1275c71a4ff159b8b53147c6f4
re PR c++/65209 (Broken code with global static variables, invalid pointer when freeing global variables)

PR c++/65209
* decl2.c (constrain_visibility) [VISIBILITY_ANON]: Clear
DECL_COMDAT.
(constrain_visibility_for_template): Handle reference arguments.

From-SVN: r220991
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/abi/anon4.C [new file with mode: 0644]