summaryrefslogtreecommitdiffstats
path: root/gcc/cp/mangle.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-19 04:56:45 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-19 04:56:45 +0000
commit0cd69b170c537b551fd04f5491c04ed4d4c58540 (patch)
tree7fea522200428b59794c12580af53bd15eb4ead2 /gcc/cp/mangle.c
parentcfec09754a50791c41659e12ca82cbf408c99e0f (diff)
downloadppe42-gcc-0cd69b170c537b551fd04f5491c04ed4d4c58540.tar.gz
ppe42-gcc-0cd69b170c537b551fd04f5491c04ed4d4c58540.zip
* decl.c (grokparms): Don't even function types of `void' type,
either. * mangle.c (write_type): Don't crash when confronted with the error_mark_node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37555 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r--gcc/cp/mangle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index 5c45a9137f1..7353cf881ad 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -1245,6 +1245,9 @@ write_type (type)
MANGLE_TRACE_TREE ("type", type);
+ if (type == error_mark_node)
+ return;
+
if (find_substitution (type))
return;
OpenPOWER on IntegriCloud