diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-11-10 22:31:29 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-11-10 22:31:29 +0000 |
commit | 05fd666b63ac147fa053959d581ead5b003fe60c (patch) | |
tree | a157dfab0f24e1183178f96ba5c7d1a59867f79f /gcc/cp/error.c | |
parent | a1d9074cf12f6f156c1dddc415083b3f679cc91b (diff) | |
download | gcc-05fd666b63ac147fa053959d581ead5b003fe60c.zip gcc-05fd666b63ac147fa053959d581ead5b003fe60c.tar.gz gcc-05fd666b63ac147fa053959d581ead5b003fe60c.tar.bz2 |
error.c (dump_function_name): Don't crash if given a friend pseudo-instantiation.
* error.c (dump_function_name): Don't crash if given a friend
pseudo-instantiation.
From-SVN: r30479
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index ac9427b..9151b8c 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1283,6 +1283,7 @@ dump_function_name (t, flags) dump_decl (name, flags); if (DECL_LANG_SPECIFIC (t) && DECL_TEMPLATE_INFO (t) + && !DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t) && (DECL_TEMPLATE_SPECIALIZATION (t) || TREE_CODE (DECL_TI_TEMPLATE (t)) != TEMPLATE_DECL || DECL_TEMPLATE_SPECIALIZATION (DECL_TI_TEMPLATE (t)) |