* g++.dg/ext/visibility/anon6.C: Update testcase.
* cp/pt.c (mark_decl_instantiated): Do not export explicit instantiations
of anonymous namespace templates.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199956
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-06-11 Jan Hubicka <jh@suse.cz>
+
+ PR c++/57551
+ * cp/pt.c (mark_decl_instantiated): Do not export explicit instantiations
+ of anonymous namespace templates.
+
2013-06-10 Jason Merrill <jason@redhat.com>
* name-lookup.c (add_decl_to_level): Add decls in an anonymous
if (TREE_ASM_WRITTEN (result))
return;
+ /* For anonymous namespace we don't need to do anything. */
+ if (decl_anon_ns_mem_p (result))
+ {
+ gcc_assert (!TREE_PUBLIC (result));
+ return;
+ }
+
if (TREE_CODE (result) != FUNCTION_DECL)
/* The TREE_PUBLIC flag for function declarations will have been
set correctly by tsubst. */
+2013-06-11 Jan Hubicka <jh@suse.cz>
+
+ PR c++/57551
+ * g++.dg/ext/visibility/anon6.C: Update testcase.
+
2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
PR c/57563
// PR c++/33094
// { dg-final { scan-assembler "1BIiE1cE" } }
// { dg-final { scan-assembler-not "globl.*1BIiE1cE" } }
+// { dg-final { scan-assembler-not "comdat" } }
+// { dg-final { scan-assembler-not "weak" } }
// { dg-final { scan-assembler-not "1CIiE1cE" } }
// Test that B<int>::c is emitted as an internal symbol, and C<int>::c is
template <typename T>
class B
{
- static const T c = 0;
+ __attribute__ ((__used__)) static const T c = 0;
};
template <typename T> const T B<T>::c;