tree.c (decl_function_context): Handle virtual functions.
[gcc.git] / gcc / tlink.c
index 3fdd135a2c74a32f36ccc1a18859c5e8986aa551..a6130a14c29f502e46fd2c3ed8eadbf2687022f2 100644 (file)
@@ -638,6 +638,11 @@ scan_linker_output (fname)
          else if (p = index (oldq, '"'), p)
            p++, q = index (p, '"');
 
+         /* Don't let the strstr's below see the demangled name; we
+            might get spurious matches.  */
+         if (p)
+           p[-1] = '\0';
+
          /* We need to check for certain error keywords here, or we would
             mistakenly use GNU ld's "In function `foo':" message.  */
          if (q && (strstr (oldq, "ndefined")