merge from gcc

This commit is contained in:
DJ Delorie 2002-02-19 21:01:40 +00:00
parent 375fd65be6
commit 59ea9fe7b6
3 changed files with 23 additions and 2 deletions

View file

@ -2414,8 +2414,15 @@ demangle_arm_hp_template (work, mangled, n, declp)
break;
default:
/* Not handling other HP cfront stuff */
if (!do_type (work, &args, &arg))
goto cfront_template_args_done;
{
const char* old_args = args;
if (!do_type (work, &args, &arg))
goto cfront_template_args_done;
/* Fail if we didn't make any progress: prevent infinite loop. */
if (args == old_args)
return;
}
}
string_appends (declp, &arg);
string_append (declp, ",");