Commit 16d3e075 by Mark Mitchell Committed by Mark Mitchell

visibility13.C: Remove "instantiated from here" ERROR lines.

	* g++.old-deja/g++.law/visibility13.C: Remove "instantiated from
	here" ERROR lines.
	* g++.old-deja/g++.oliva/partord1.C: Likewise.
	* g++.old-deja.g++.other/defarg1.C: Likewise.
	* g++.old-deja/g++.pt/calls2.C: Likewise.
	* g++.old-deja/g++.pt/crash20.C: Likewise.
	* g++.old-deja/g++.pt/crash30.C: Likewise.
	* g++.old-deja/g++.pt/crash36.C: Likewise.
	* g++.old-deja/g++.pt/crash6.C: Likewise.
	* g++.old-deja/g++.pt/defarg13.C: Likewise.
	* g++.old-deja/g++.pt/derived3.C: Likewise.
	* g++.old-deja/g++.pt/error1.C: Likewise.
	* g++.old-deja/g++.pt/friend21.C: Likewise.
	* g++.old-deja/g++.pt/friend23.C: Likewise.
	* g++.old-deja/g++.pt/infinite1.C: Likewise.
	* g++.old-deja/g++.robertl/eb128.C: Likewise.

From-SVN: r50115
parent 4e07d762
2002-02-27 Mark Mitchell <mark@codesourcery.com>
* g++.old-deja/g++.law/visibility13.C: Remove "instantiated from
here" ERROR lines.
* g++.old-deja/g++.oliva/partord1.C: Likewise.
* g++.old-deja.g++.other/defarg1.C: Likewise.
* g++.old-deja/g++.pt/calls2.C: Likewise.
* g++.old-deja/g++.pt/crash20.C: Likewise.
* g++.old-deja/g++.pt/crash30.C: Likewise.
* g++.old-deja/g++.pt/crash36.C: Likewise.
* g++.old-deja/g++.pt/crash6.C: Likewise.
* g++.old-deja/g++.pt/defarg13.C: Likewise.
* g++.old-deja/g++.pt/derived3.C: Likewise.
* g++.old-deja/g++.pt/error1.C: Likewise.
* g++.old-deja/g++.pt/friend21.C: Likewise.
* g++.old-deja/g++.pt/friend23.C: Likewise.
* g++.old-deja/g++.pt/infinite1.C: Likewise.
* g++.old-deja/g++.robertl/eb128.C: Likewise.
2002-02-27 Geoffrey Keating <geoffk@redhat.com> 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
* gcc.c-torture/execute/20020225-2.c: New test. * gcc.c-torture/execute/20020225-2.c: New test.
......
...@@ -99,7 +99,7 @@ try_array( Array_RC<Type> &rc ) ...@@ -99,7 +99,7 @@ try_array( Array_RC<Type> &rc )
int main() int main()
{ {
static int ia[10] = { 12, 7, 14, 9, 128, 17, 6, 3, 27, 5 }; static int ia[10] = { 12, 7, 14, 9, 128, 17, 6, 3, 27, 5 };
Array_RC<int> iA(ia, 10);// ERROR - instantiated from here Array_RC<int> iA(ia, 10);
cout << "template Array_RC class" << endl; cout << "template Array_RC class" << endl;
try_array(iA); try_array(iA);
......
...@@ -23,6 +23,6 @@ template <typename T> void foo(T*) { ...@@ -23,6 +23,6 @@ template <typename T> void foo(T*) {
int main() { int main() {
int j = 0; int j = 0;
foo(j); // calls foo<int>(int), ok foo(j); // calls foo<int>(int), ok
foo(&j); // calls foo<int>(int*) // ERROR - not a friend foo(&j); // calls foo<int>(int*)
foo<int*>(&j); // calls foo<int*>(int*), ok foo<int*>(&j); // calls foo<int*>(int*), ok
} }
...@@ -24,5 +24,5 @@ int j (T t) ...@@ -24,5 +24,5 @@ int j (T t)
return 0; return 0;
} }
template int j (double); // ERROR - instantiated from here template int j (double);
...@@ -11,4 +11,4 @@ for_each(const Field& p, IsCompressed, C) ...@@ -11,4 +11,4 @@ for_each(const Field& p, IsCompressed, C)
return p.IsCompressed(); // ERROR - calling type like a method return p.IsCompressed(); // ERROR - calling type like a method
} }
template bool for_each<int>(const Field& p, IsCompressed, int); // ERROR - instantiated from here template bool for_each<int>(const Field& p, IsCompressed, int);
...@@ -6,4 +6,4 @@ struct A { const T x; A() : x(0) { } A(T x) : x(x) { } }; ...@@ -6,4 +6,4 @@ struct A { const T x; A() : x(0) { } A(T x) : x(x) { } };
template <class B> template <class B>
void func () { B y; y = B(); } // ERROR - can't use default assignment void func () { B y; y = B(); } // ERROR - can't use default assignment
int main (void) { func< A<> >(); } // ERROR - instantiated from here int main (void) { func< A<> >(); }
...@@ -12,4 +12,4 @@ template <class T> struct B { ...@@ -12,4 +12,4 @@ template <class T> struct B {
friend void xxx<T>(T); // ERROR - does not match any template friend void xxx<T>(T); // ERROR - does not match any template
}; };
template struct B<double>; // ERROR - template struct B<double>;
...@@ -32,4 +32,4 @@ struct list { ...@@ -32,4 +32,4 @@ struct list {
(list_iterator<T>(Head->next())); } (list_iterator<T>(Head->next())); }
}; };
template class list<int>; // ERROR - instantiated from here template class list<int>;
...@@ -19,5 +19,5 @@ struct List ...@@ -19,5 +19,5 @@ struct List
void test(List<int>& vals) void test(List<int>& vals)
{ {
vals.length(); // ERROR - instantiated from here vals.length();
} }
...@@ -6,8 +6,8 @@ void f (int i) ...@@ -6,8 +6,8 @@ void f (int i)
{ {
struct S { void g (int j = i) {} }; // ERROR - default argument uses local struct S { void g (int j = i) {} }; // ERROR - default argument uses local
S s; // ERROR - instantiated here S s;
} }
template void f<double>(int); // ERROR - instantiated here template void f<double>(int);
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// crash test - // crash test -
// by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc. // by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
// Copyright (C) 1999 Free Software Foundation // Copyright (C) 1999, 2002 Free Software Foundation
template<class T> template<class T>
class X { class X {
...@@ -10,6 +10,6 @@ class X { ...@@ -10,6 +10,6 @@ class X {
Y y; Y y;
}; };
int main() { int main() {
X<int> x; // ERROR - (instantiated from here) X<int> x;
} }
...@@ -16,4 +16,4 @@ void S<T>::f () ...@@ -16,4 +16,4 @@ void S<T>::f ()
U& u; // ERROR - uninitialized reference U& u; // ERROR - uninitialized reference
} }
template void S<int>::f<double>(); // ERROR - instantiated from here template void S<int>::f<double>();
...@@ -27,4 +27,4 @@ void A<T>::f() ...@@ -27,4 +27,4 @@ void A<T>::f()
B<double>::i = 3; // ERROR - member `i' is private B<double>::i = 3; // ERROR - member `i' is private
} }
template void A<int>::f(); // ERROR - instantiated from here template void A<int>::f();
...@@ -7,4 +7,4 @@ struct S ...@@ -7,4 +7,4 @@ struct S
friend class S; friend class S;
}; };
template struct S<int>; // ERROR - instantiated from here template struct S<int>;
...@@ -16,5 +16,5 @@ template <> void f<11>(); ...@@ -16,5 +16,5 @@ template <> void f<11>();
int main() int main()
{ {
f<0>(); // ERROR - starting here f<0>();
} }
...@@ -7,5 +7,5 @@ public: ...@@ -7,5 +7,5 @@ public:
void f() void f()
{ {
A<int&> a; // ERROR - instantiated from here A<int&> a;
} }
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