Commit e9dd7bfd by Mark Mitchell Committed by Mark Mitchell

qualttp20.C: Revert previous change.

	* g++.dg/template/qualttp20.C: Revert previous change.
	* g++.dg/template/qualttp3.C: Likewise.
	* g++.dg/template/qualttp4.C: Likewise
	* g++.dg/template/qualttp5.C: Likewise
	* g++.dg/template/qualttp6.C: Likewise
	* g++.dg/template/qualttp7.C: Likewise
	* g++.dg/template/qualttp8.C: Likewise
	* g++.dg/template/recurse.C: Likewise.

From-SVN: r50946
parent 1b5a2139
2002-03-17 Mark Mitchell <mark@codesourcery.com>
* g++.dg/template/qualttp20.C: Revert previous change.
* g++.dg/template/qualttp3.C: Likewise.
* g++.dg/template/qualttp4.C: Likewise
* g++.dg/template/qualttp5.C: Likewise
* g++.dg/template/qualttp6.C: Likewise
* g++.dg/template/qualttp7.C: Likewise
* g++.dg/template/qualttp8.C: Likewise
* g++.dg/template/recurse.C: Likewise.
2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk> 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
* gcc.dg/cpp/wchar-1.c: Update. * gcc.dg/cpp/wchar-1.c: Update.
......
// { dg-do compile } // { dg-do compile }
// Copyright (C) 2001, 2002 Free Software Foundation, Inc. // Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 15 Dec 2001 <nathan@codesourcery.com> // Contributed by Nathan Sidwell 15 Dec 2001 <nathan@codesourcery.com>
// PR 2645 // PR 2645
...@@ -29,5 +29,5 @@ template <typename T> struct B2 : T ...@@ -29,5 +29,5 @@ template <typename T> struct B2 : T
myconst b; myconst b;
}; };
B1<AS> b1; B1<AS> b1; // { dg-error "instantiated" "" }
B2<AS> b2; B2<AS> b2;
// Copyright (C) 2001, 2002 Free Software Foundation // Copyright (C) 2001 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile } // { dg-do compile }
...@@ -19,5 +19,5 @@ template <class T> struct C ...@@ -19,5 +19,5 @@ template <class T> struct C
int main() int main()
{ {
C<A> c; C<A> c; // { dg-error "instantiated" }
} }
// Copyright (C) 2001, 2002 Free Software Foundation // Copyright (C) 2001 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile } // { dg-do compile }
...@@ -20,5 +20,5 @@ template <class T> struct C ...@@ -20,5 +20,5 @@ template <class T> struct C
int main() int main()
{ {
C<A> c; C<A> c; // { dg-error "instantiated" }
} }
// Copyright (C) 2001, 2002 Free Software Foundation // Copyright (C) 2001 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile } // { dg-do compile }
...@@ -15,11 +15,11 @@ template <template <class> class TT> void f() ...@@ -15,11 +15,11 @@ template <template <class> class TT> void f()
template <class T> struct C template <class T> struct C
{ {
void g() { f<A<T>::template B>(); } void g() { f<A<T>::template B>(); } // { dg-error "instantiated" }
}; };
int main() int main()
{ {
C<int> c; C<int> c;
c.g(); c.g(); // { dg-error "instantiated" }
} }
// Copyright (C) 2001, 2002 Free Software Foundation // Copyright (C) 2001 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile } // { dg-do compile }
...@@ -12,4 +12,4 @@ template <class T> struct D { ...@@ -12,4 +12,4 @@ template <class T> struct D {
struct E { struct E {
}; };
D<E> d; D<E> d; // { dg-error "instantiated" }
// Copyright (C) 2001, 2002 Free Software Foundation // Copyright (C) 2001 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile } // { dg-do compile }
...@@ -9,4 +9,4 @@ template <class T> struct D { ...@@ -9,4 +9,4 @@ template <class T> struct D {
C<T::template B> c; // { dg-error "no class template" } C<T::template B> c; // { dg-error "no class template" }
}; };
D<int> d; D<int> d; // { dg-error "instantiated" }
// Copyright (C) 2001, 2002 Free Software Foundation // Copyright (C) 2001 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile } // { dg-do compile }
...@@ -14,4 +14,4 @@ struct E { ...@@ -14,4 +14,4 @@ struct E {
template <class T> class B {}; // { dg-error "private" } template <class T> class B {}; // { dg-error "private" }
}; };
D<E> d; D<E> d; // { dg-error "instantiated" }
...@@ -18,5 +18,5 @@ template <> struct F<52> ...@@ -18,5 +18,5 @@ template <> struct F<52>
int main () int main ()
{ {
F<1> f; F<1> f;
return f(); return f(); // { dg-error "instantiate" "excessive recursion" }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment