This is the mail archive of the gcc-bugs@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]

Patch for internal compiler error



Andrew --

  Here's the patch for the template crash you reported on 12/11.

-- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu

1997-12-12  Mark Mitchell  <mmitchell@usa.net>

	* call.c (implicit_conversion): Don't call
	build_user_type_conversion_1 with a NULL expr, since it will
	crash. 

Index: call.c
===================================================================
RCS file: /home/mitchell/Repository/egcs/gcc/cp/call.c,v
retrieving revision 1.1.1.4
diff -c -p -r1.1.1.4 call.c
*** call.c	1997/12/08 07:31:55	1.1.1.4
--- call.c	1997/12/12 22:44:48
*************** implicit_conversion (to, from, expr, fla
*** 3318,3324 ****
  
    if (conv)
      ;
!   else if ((IS_AGGR_TYPE (non_reference (from))
  	    || IS_AGGR_TYPE (non_reference (to)))
  	   && (flags & LOOKUP_NO_CONVERSION) == 0)
      {
--- 3318,3325 ----
  
    if (conv)
      ;
!   else if (expr != NULL_TREE
! 	   && (IS_AGGR_TYPE (non_reference (from))
  	    || IS_AGGR_TYPE (non_reference (to)))
  	   && (flags & LOOKUP_NO_CONVERSION) == 0)
      {


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