aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-12-21 18:28:54 +0000
committerJason Merrill <jason@redhat.com>2016-12-21 18:28:54 +0000
commit342308f4fa91a43cec37e5723b8655213707809a (patch)
treebe8b71a56457f32bdda83c30bc2955346ff4a1cd /gcc/cp/decl.c
parentb79c177c9ff7861744b399e36d2a58231facd895 (diff)
PR c++/78749 - friend in anonymous namespace
* decl.c (wrapup_globals_for_namespace): Don't complain about friend pseudo-template instantiations. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@243862 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index e83b542d424..295416051b7 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -926,6 +926,7 @@ wrapup_globals_for_namespace (tree name_space, void* data ATTRIBUTE_UNUSED)
&& DECL_EXTERNAL (decl)
&& !TREE_PUBLIC (decl)
&& !DECL_ARTIFICIAL (decl)
+ && !DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (decl)
&& !TREE_NO_WARNING (decl))
{
warning_at (DECL_SOURCE_LOCATION (decl),