visibility13.C: Remove "instantiated from here" ERROR lines.
authorMark Mitchell <mark@codesourcery.com>
Wed, 27 Feb 2002 20:29:45 +0000 (20:29 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 27 Feb 2002 20:29:45 +0000 (20:29 +0000)
* 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

16 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.law/visibility13.C
gcc/testsuite/g++.old-deja/g++.oliva/partord1.C
gcc/testsuite/g++.old-deja/g++.other/defarg1.C
gcc/testsuite/g++.old-deja/g++.pt/call2.C
gcc/testsuite/g++.old-deja/g++.pt/crash20.C
gcc/testsuite/g++.old-deja/g++.pt/crash30.C
gcc/testsuite/g++.old-deja/g++.pt/crash36.C
gcc/testsuite/g++.old-deja/g++.pt/crash6.C
gcc/testsuite/g++.old-deja/g++.pt/defarg13.C
gcc/testsuite/g++.old-deja/g++.pt/derived3.C
gcc/testsuite/g++.old-deja/g++.pt/error1.C
gcc/testsuite/g++.old-deja/g++.pt/friend21.C
gcc/testsuite/g++.old-deja/g++.pt/friend23.C
gcc/testsuite/g++.old-deja/g++.pt/infinite1.C
gcc/testsuite/g++.old-deja/g++.robertl/eb128.C

index d6b70d39409ac11a4a6561f67ec8c99e592bd457..c2d12e96864c0ccca225f55e70e9fd410cbfe77f 100644 (file)
@@ -1,3 +1,22 @@
+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.
index dbde720d2762301b19a14bf92dc0948f49d09e45..472d5a2da8121a5e0f3f94ec268689062c83a163 100644 (file)
@@ -99,7 +99,7 @@ try_array( Array_RC<Type> &rc )
 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);
index 7ed017ac276d8633c999e13df41b32bd7a467870..077006532f7ddd0ddcd4d18d1c679cb5b001d9c5 100644 (file)
@@ -23,6 +23,6 @@ template <typename T> void foo(T*) {
 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
 }
index 68b07a510cc45f7494cf247db060073b03ff786c..f1f72a555f22a7198ba520a1bafa58c125955ff0 100644 (file)
@@ -24,5 +24,5 @@ int j (T t)
   return 0;
 }
 
-template int j (double); // ERROR - instantiated from here
+template int j (double);
 
index 51b246948ed14763bc7c54892971b979c49500d6..e38a29e66b42f437e5c4f96ae618b38e3c25ac5b 100644 (file)
@@ -11,4 +11,4 @@ for_each(const Field& p, IsCompressed, C)
   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);
index 29b4281c76edfc00822aecf2b88158490d9d39dc..9efff9ddd7589a1055b6dca0018303478be59279 100644 (file)
@@ -6,4 +6,4 @@ struct A { const T x; A() : x(0) { } A(T x) : x(x) { } };
 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<> >(); }
index 13dc37af68d795b820bbbc703565e312da00a80d..3b953d42c3fbdcb30c5c48030556a2710fe7c169 100644 (file)
@@ -12,4 +12,4 @@ template <class T> struct B {
   friend void xxx<T>(T); // ERROR - does not match any template
 };
  
-template struct B<double>; // ERROR - 
+template struct B<double>;
index ef507a4ec4b3c37eb1daaa81820ccfc4f9d9c5dd..f9cbed2c60e60afeefb9b31ded07174714545c4a 100644 (file)
@@ -32,4 +32,4 @@ struct list {
        (list_iterator<T>(Head->next())); }
 };
 
-template class list<int>; // ERROR - instantiated from here
+template class list<int>;
index 09e8df07973ebb8a1a2a4285c6e8ca98a7999595..8e969402dae73c2e492784d16803b47d1c3e78b0 100644 (file)
@@ -19,5 +19,5 @@ struct List
 
 void test(List<int>& vals)
 {
-  vals.length();  // ERROR - instantiated from here
+  vals.length();
 }
index 1082bf567e0a64e6b6533c45c48ea92508c7a212..0f7e84f12efed6a7dc9feee826be10fa5bdc8559 100644 (file)
@@ -6,8 +6,8 @@ void f (int i)
 {
   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);
 
index 9b4bda53cefc3a596ec6127b77b33c1901bfe792..fa807da60fa568b3993ac338a66e7a627899a877 100644 (file)
@@ -2,7 +2,7 @@
 // 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 {
@@ -10,6 +10,6 @@ class X {
        Y y;
 };
 int main() {
-       X<int> x; // ERROR - (instantiated from here)
+       X<int> x;
 }
 
index 675a31a398d0bd2b4b4155a8245a7529f51f95ea..5216a42fba7a0dc0a2a715da2df539f3adccad72 100644 (file)
@@ -16,4 +16,4 @@ void S<T>::f ()
   U& u; // ERROR - uninitialized reference
 }
 
-template void S<int>::f<double>(); // ERROR - instantiated from here
+template void S<int>::f<double>();
index 3f690a4404aa16ed461c183554d960ef446e0c41..d30f29f721430b13baa777f79a5779fed598236f 100644 (file)
@@ -27,4 +27,4 @@ void A<T>::f()
   B<double>::i = 3; // ERROR - member `i' is private
 }
 
-template void A<int>::f(); // ERROR - instantiated from here
+template void A<int>::f();
index 21065f1cac109dca677a01f253cb578aa24496d0..4d37da32245bbe5d335340ef7999496fef3bc180 100644 (file)
@@ -7,4 +7,4 @@ struct S
   friend class S;
 };
 
-template struct S<int>; // ERROR - instantiated from here
+template struct S<int>;
index 7e7e5fe981411cc70cbcbd91f48688c9e48bf998..88d3ac52ac3b0f2f13193c62cd6c850e528e9829 100644 (file)
@@ -16,5 +16,5 @@ template <> void f<11>();
 
 int main()
 {
-  f<0>();                      // ERROR - starting here
+  f<0>();
 }
index d056e39012e9bbda0a2073c08b30c874fb61124e..f3a65fc92038e4a64b8b50ac324a9cfe475c7ee4 100644 (file)
@@ -7,5 +7,5 @@ public:
 
 void f()
 {
-  A<int&> a; // ERROR - instantiated from here
+  A<int&> a;
 }