This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] template template parm fixes (1/3)
- To: Jason Merrill <jason at redhat dot com>
- Subject: Re: [PATCH] template template parm fixes (1/3)
- From: Paul Burchard <burchard at pobox dot com>
- Date: Fri, 23 Jun 2000 03:46:54 -0700
- CC: gcc-patches at gcc dot gnu dot org
- References: <37DDF4EB.A04DF833@pobox.com> <u9zoocuc00.fsf@casey.soma.redhat.com>
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/
----------------------------------------------------------------------