]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/decl.c
[PR86379] do not use TREE_TYPE for USING_DECL_SCOPE
[thirdparty/gcc.git] / gcc / cp / decl.c
index 31d7dc5be1e7fe5943d79a510fba32a3c5fe2c6c..8fe547c3ac58a93ad7659881c1e3578649acaa81 100644 (file)
@@ -13317,7 +13317,8 @@ grok_special_member_properties (tree decl)
 {
   tree class_type;
 
-  if (!DECL_NONSTATIC_MEMBER_FUNCTION_P (decl))
+  if (TREE_CODE (decl) == USING_DECL
+      || !DECL_NONSTATIC_MEMBER_FUNCTION_P (decl))
     return;
 
   class_type = DECL_CONTEXT (decl);