This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [C++ PATCH] ICE while reporting template error



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))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]