diff options
author | Jason Merrill <merrill@gnu.org> | 1996-02-21 19:28:20 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1996-02-21 19:28:20 +0000 |
commit | 943a140b59be776326ddebfe4a7dddb1026be608 (patch) | |
tree | e34ddd88f6f6aaadb2e63ed0c6c0d5f88e55869f /gcc/cplus-dem.c | |
parent | 2a6cff31d614360d48076b12b598bb89ffa0a1ec (diff) | |
download | gcc-943a140b59be776326ddebfe4a7dddb1026be608.tar.gz |
(demangle_template): Initialize is_bool.
(demangle_template): Initialize is_bool. Correctly
| handle 0 as a pointer value parameter.
From-SVN: r11335
Diffstat (limited to 'gcc/cplus-dem.c')
-rw-r--r-- | gcc/cplus-dem.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cplus-dem.c b/gcc/cplus-dem.c index 53a668dda5a..5525be7cc41 100644 --- a/gcc/cplus-dem.c +++ b/gcc/cplus-dem.c @@ -907,6 +907,7 @@ demangle_template (work, mangled, tname, trawname) is_real = 0; is_integral = 0; is_char = 0; + is_bool = 0; done = 0; /* temp is initialized in do_type */ success = do_type (work, mangled, &temp); @@ -1060,7 +1061,10 @@ demangle_template (work, mangled, tname, trawname) success = 0; break; } - string_appendn (tname, *mangled, symbol_len); + if (symbol_len == 0) + string_appendn (tname, "0", 1); + else + string_appendn (tname, *mangled, symbol_len); *mangled += symbol_len; } } |