]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/cp-demangle.c
cp-demangle.c (has_return_type): Skip qualifiers when checking whether we have a...
[thirdparty/gcc.git] / libiberty / cp-demangle.c
index 6a2b311335ccee13d598f04ad2b5cd8d99aefb3b..e442519578355baa4fa83f6b8d52bcdbfff47e00 100644 (file)
@@ -908,6 +908,11 @@ has_return_type (dc)
       return 0;
     case D_COMP_TEMPLATE:
       return ! is_ctor_dtor_or_conversion (d_left (dc));
+    case D_COMP_RESTRICT:
+    case D_COMP_VOLATILE:
+    case D_COMP_CONST:
+    case D_COMP_VENDOR_TYPE_QUAL:
+      return has_return_type (d_left (dc));
     }
 }