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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50115
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* gcc.c-torture/execute/20020225-2.c: New test.
int main()
{
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;
try_array(iA);
int main() {
int j = 0;
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
}
return 0;
}
-template int j (double); // ERROR - instantiated from here
+template int j (double);
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);
template <class B>
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<> >(); }
friend void xxx<T>(T); // ERROR - does not match any template
};
-template struct B<double>; // ERROR -
+template struct B<double>;
(list_iterator<T>(Head->next())); }
};
-template class list<int>; // ERROR - instantiated from here
+template class list<int>;
void test(List<int>& vals)
{
- vals.length(); // ERROR - instantiated from here
+ vals.length();
}
{
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);
// crash test -
// 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>
class X {
Y y;
};
int main() {
- X<int> x; // ERROR - (instantiated from here)
+ X<int> x;
}
U& u; // ERROR - uninitialized reference
}
-template void S<int>::f<double>(); // ERROR - instantiated from here
+template void S<int>::f<double>();
B<double>::i = 3; // ERROR - member `i' is private
}
-template void A<int>::f(); // ERROR - instantiated from here
+template void A<int>::f();
friend class S;
};
-template struct S<int>; // ERROR - instantiated from here
+template struct S<int>;
int main()
{
- f<0>(); // ERROR - starting here
+ f<0>();
}
void f()
{
- A<int&> a; // ERROR - instantiated from here
+ A<int&> a;
}