Commit 518fed76 by Alexandre Oliva Committed by Alexandre Oliva

method.c (build_mangled_name): Protect flush_repeats() from error_mark_node.

* method.c (build_mangled_name) [old abi]: Protect flush_repeats()
from error_mark_node.

From-SVN: r39460
parent 480cd778
2001-02-05 Alexandre Oliva <aoliva@redhat.com>
* method.c (build_mangled_name) [old abi]: Protect flush_repeats()
from error_mark_node.
2001-02-05 Nathan Sidwell <nathan@codesourcery.com>
Fix specification and implementation bugs in V3 ABI
......
......@@ -1213,6 +1213,16 @@ build_mangled_name (parmtypes, begin, end)
nrepeats = 0;
}
/* Insead of protecting flush_repeats() against
error_mark_node, we can do it here. Since we wouldn't
add anything for an ERROR_MARK anyway, it's ok to skip
the mangling for this type. */
if (old_style_repeats && parmtype == error_mark_node)
{
last_type = NULL_TREE;
continue;
}
last_type = parmtype;
/* Note that for bug-compatibility with 2.7.2, we can't build up
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment