aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-08-15 10:46:51 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-08-15 10:46:51 +0000
commit68ea098a059c352835b2090a02a163f47560ef17 (patch)
tree381dcd409dcfdf722aba79a14047cc2baa00a58a /gcc/testsuite/g++.old-deja
parent4f7847cab9999f228bd0ebf17dda3a1cdde94d02 (diff)
downloadgcc-68ea098a059c352835b2090a02a163f47560ef17.zip
gcc-68ea098a059c352835b2090a02a163f47560ef17.tar.gz
gcc-68ea098a059c352835b2090a02a163f47560ef17.tar.bz2
cp: * pt.c (instantiate_class_template): Set location before substuting bases.
cp: * pt.c (instantiate_class_template): Set location before substuting bases. testsuite: * g++.dg/template/error2.C: New test. * g++.dg/lookup/using7.C: Adjust errors * g++.old-deja/g++.pt/crash36.C: Likewise. * g++.old-deja/g++.pt/derived3.C: Likewise. From-SVN: r70476
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/crash36.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/derived3.C10
2 files changed, 7 insertions, 5 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash36.C b/gcc/testsuite/g++.old-deja/g++.pt/crash36.C
index 055df04..146c0b1 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/crash36.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/crash36.C
@@ -14,7 +14,7 @@ struct iterator {
template <class Iterator>
struct reverse_iterator : public
-iterator<typename iterator_traits<Iterator>::iterator_category> {
+iterator<typename iterator_traits<Iterator>::iterator_category> { // { dg-error "" } no type iterator_category
protected:
Iterator current;
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/derived3.C b/gcc/testsuite/g++.old-deja/g++.pt/derived3.C
index 24d2c0d..806e0f5 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/derived3.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/derived3.C
@@ -1,14 +1,16 @@
-// { dg-do assemble }
+// { dg-do compile }
// by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
// Copyright (C) 1999, 2002 Free Software Foundation
template<class T>
class X {
- class Y : public T {};
- Y y; // { dg-error "" } invalid base type
+ class Y : public T
+ { // { dg-error "base type .* fails to be" "" }
+ };
+ Y y; // { dg-error "instantiated" "" }
};
int main() {
- X<int> x; // { dg-error "" } instantiated
+ X<int> x; // { dg-error "instantiated" "" }
}