diff options
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; } } |