This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] ICE while reporting template error
- To: snyder at fnal dot gov
- Subject: Re: [C++ PATCH] ICE while reporting template error
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 10 Nov 1999 14:29:43 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <199911100023.SAA13734@d0linux01.fnal.gov>
Fixed thusly.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
1999-11-10 Mark Mitchell <mark@codesourcery.com>
* error.c (dump_function_name): Don't crash if given a friend
pseudo-instantiation.
Index: error.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/error.c,v
retrieving revision 1.94
diff -c -p -r1.94 error.c
*** error.c 1999/09/29 17:24:18 1.94
--- error.c 1999/11/10 22:29:09
*************** dump_function_name (t, flags)
*** 1283,1288 ****
--- 1283,1289 ----
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))