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: [PATCH] template template parm fixes (1/3)


Jason,

I noticed that in applying this patch you modified the crash test
g++.pt/memtemp89.C to say

// ERROR - Q::X inaccessible XFAIL *-*-*

That's correct of course -- my stupidity for using `class' instead
of `struct'.  But it would serve as a better regression test if
you were make it XPASS by correcting that goof (the corrected code
with `struct' still crashes old GCC versions).  Thanks.


*** g++.pt/memtemp89.C.orig	Fri Jun 23 03:24:53 2000
--- g++.pt/memtemp89.C	Fri Jun 23 03:39:52 2000
***************
*** 1,15 ****
  // Build don't link:
  
  // by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
  // Copyright (C) 1999, 2000 Free Software Foundation
  
! class Q {
  	template<class T>
  	class X {
  	};
  };
  template<template<class> class XX>
! class Y {
! 	XX<int> x_;		// ERROR - Q::X inaccessible XFAIL *-*-*
  };
! Y<Q::X> y;			// ERROR - instantiated from here XFAIL *-*-*
--- 1,16 ----
  // Build don't link:
+ // XPASS *-*-*
  
  // by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
  // Copyright (C) 1999, 2000 Free Software Foundation
  
! struct Q {
  	template<class T>
  	class X {
  	};
  };
  template<template<class> class XX>
! struct Y {
! 	XX<int> x_;
  };
! Y<Q::X> y;



-- 
----------------------------------------------------------------------
Paul Burchard   <burchard@pobox.com>   http://www.pobox.com/~burchard/
----------------------------------------------------------------------

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