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 Re: egcs-2.91.14 980315 : Internal compiler error 238.



Here's a patch.  Jason?

-- 
Mark Mitchell <mmitchell@usa.net>
http://home.earthlink.net/~mbmitchell
Consulting Services Available

Thu Mar 19 19:01:48 1998  Mark Mitchell  <mmitchell@usa.net>

	* pt.c (tsubst): Clear DECL_PENDING_INLINE_INFO for new
	FUNCTION_DECLs.

Index: cp/pt.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/pt.c,v
retrieving revision 1.99
diff -c -p -r1.99 pt.c
*** pt.c	1998/03/19 11:52:21	1.99
--- pt.c	1998/03/20 02:59:20
*************** tsubst (t, args, in_decl)
*** 3964,3969 ****
--- 3975,3981 ----
  	DECL_DEFER_OUTPUT (r) = 0;
  	TREE_CHAIN (r) = NULL_TREE;
  	DECL_CHAIN (r) = NULL_TREE;
+ 	DECL_PENDING_INLINE_INFO (r) = 0;
  
  	if (IDENTIFIER_OPNAME_P (DECL_NAME (r)))
  	  grok_op_properties (r, DECL_VIRTUAL_P (r), DECL_FRIEND_P (r));
Index: testsuite/g++.old-deja/g++.pt/crash3.C
===================================================================
RCS file: crash3.C
diff -N crash3.C
*** /dev/null	Mon Dec 31 20:00:00 1979
--- crash3.C	Thu Mar 19 18:59:20 1998
***************
*** 0 ****
--- 1,16 ----
+ // Build don't link:
+ 
+ template <class Type>
+ class CVector {
+ public:
+     CVector<int> f() const
+     {
+        CVector<int> v(n);
+        return v;
+     }
+     CVector<long> g() const
+     {
+        CVector<long> v(n);
+        return v;
+     }
+ };


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