This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Patch for internal compiler error
- To: Andrew Borthwick <borthwic at johnson dot cs dot nyu dot edu>, Jason Merrill <jason at cygnus dot com>
- Subject: Patch for internal compiler error
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Fri, 12 Dec 1997 14:58:23 -0800
- Cc: egcs-bugs at cygnus dot com
- Reply-To: egcs-bugs at cygnus dot com
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)
{