From-SVN: r21799
This commit is contained in:
Jason Merrill 1998-08-17 14:46:03 -04:00
parent 5210f3d05f
commit 09007174da
1 changed files with 4 additions and 2 deletions

View File

@ -2491,7 +2491,8 @@ do_type (work, mangled, result)
case 'A':
{
++(*mangled);
if (!STRING_EMPTY (&decl) && decl.b[0] == '*')
if (!STRING_EMPTY (&decl)
&& (decl.b[0] == '*' || decl.b[0] == '&'))
{
string_prepend (&decl, "(");
string_append (&decl, ")");
@ -2523,7 +2524,8 @@ do_type (work, mangled, result)
/* A function */
case 'F':
(*mangled)++;
if (!STRING_EMPTY (&decl) && decl.b[0] == '*')
if (!STRING_EMPTY (&decl)
&& (decl.b[0] == '*' || decl.b[0] == '&'))
{
string_prepend (&decl, "(");
string_append (&decl, ")");