diff options
| author | dgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-24 21:07:22 +0000 |
|---|---|---|
| committer | dgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-24 21:07:22 +0000 |
| commit | 49023463afc4fbc512b90cd3bf0eb185cc3df93e (patch) | |
| tree | 21a107bee43a9514e9a551d2186ed17f546a9d8a | |
| parent | e8a7b357580881e7272cd45fb1b4c6b5c660bc3c (diff) | |
| download | ppe42-gcc-49023463afc4fbc512b90cd3bf0eb185cc3df93e.tar.gz ppe42-gcc-49023463afc4fbc512b90cd3bf0eb185cc3df93e.zip | |
2007-04-24 Douglas Gregor <doug.gregor@gmail.com>
* g++.old-deja/g++.pt/defarg6.C: Only run with
-std=gnu++98.
* g++.old-deja/g++.pt/ucnid-1.C: Ditto.
* g++.dg/cpp0x/variadic61.C: Ditto.
* g++.dg/cpp0x/warn_cxx0x.C: Ditto.
* g++.dg/cpp0x/variadic62.C: Ditto.
* g++.dg/template/meminit1.C: Ditto.
* g++.dg/template/operator7.C: Ditto.
* g++.dg/template/static15.C: Ditto.
* g++.dg/template/invalid1.C: Ditto.
* g++.dg/template/shift1.C: Ditto.
* g++.dg/template/error10.C: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124125 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 15 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/cpp/ucnid-1.C | 2 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic61.C | 2 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic62.C | 2 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C | 2 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/template/error10.C | 1 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/template/invalid1.C | 1 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/template/meminit1.C | 1 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/template/operator7.C | 1 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/template/shift1.C | 1 | ||||
| -rw-r--r-- | gcc/testsuite/g++.dg/template/static15.C | 1 | ||||
| -rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/defarg6.C | 1 |
12 files changed, 26 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e0cb3ddb542..32fc7f3c0b0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,18 @@ +2007-04-24 Douglas Gregor <doug.gregor@gmail.com> + + * g++.old-deja/g++.pt/defarg6.C: Only run with + -std=gnu++98. + * g++.old-deja/g++.pt/ucnid-1.C: Ditto. + * g++.dg/cpp0x/variadic61.C: Ditto. + * g++.dg/cpp0x/warn_cxx0x.C: Ditto. + * g++.dg/cpp0x/variadic62.C: Ditto. + * g++.dg/template/meminit1.C: Ditto. + * g++.dg/template/operator7.C: Ditto. + * g++.dg/template/static15.C: Ditto. + * g++.dg/template/invalid1.C: Ditto. + * g++.dg/template/shift1.C: Ditto. + * g++.dg/template/error10.C: Ditto. + 2007-04-24 Simon Martin <simartin@users.sourceforge.net> PR diagnostic/25923 diff --git a/gcc/testsuite/g++.dg/cpp/ucnid-1.C b/gcc/testsuite/g++.dg/cpp/ucnid-1.C index d15be4f8e03..7a8f72a5dc4 100644 --- a/gcc/testsuite/g++.dg/cpp/ucnid-1.C +++ b/gcc/testsuite/g++.dg/cpp/ucnid-1.C @@ -1,5 +1,5 @@ /* { dg-do preprocess } */ -/* { dg-options "-pedantic -fextended-identifiers" } */ +/* { dg-options "-std=gnu++98 -pedantic -fextended-identifiers" } */ \u00AA /* { dg-error "not valid in an identifier" } */ \u00AB /* { dg-error "not valid in an identifier" } */ diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic61.C b/gcc/testsuite/g++.dg/cpp0x/variadic61.C index 487f78bc07a..d06c5f6b952 100644 --- a/gcc/testsuite/g++.dg/cpp0x/variadic61.C +++ b/gcc/testsuite/g++.dg/cpp0x/variadic61.C @@ -1,2 +1,2 @@ -// { dg-options "-pedantic" } +// { dg-options "-std=gnu++98 -pedantic" } template<typename... Args> class tuple; // { dg-warning "variadic templates" } diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic62.C b/gcc/testsuite/g++.dg/cpp0x/variadic62.C index dfa41f73915..010b3a5d47c 100644 --- a/gcc/testsuite/g++.dg/cpp0x/variadic62.C +++ b/gcc/testsuite/g++.dg/cpp0x/variadic62.C @@ -1,2 +1,2 @@ -// { dg-options "-pedantic-errors" } +// { dg-options "-std=gnu++98 -pedantic-errors" } template<typename... Args> class tuple; // { dg-error "variadic templates" } diff --git a/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C b/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C index 57dfe7bffa1..2b84c931a6f 100644 --- a/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C +++ b/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C @@ -1,4 +1,4 @@ -// { dg-options "-Wc++0x-compat" } +// { dg-options "-std=gnu++98 -Wc++0x-compat" } int static_assert; // { dg-warning "will become a keyword" } void foo() diff --git a/gcc/testsuite/g++.dg/template/error10.C b/gcc/testsuite/g++.dg/template/error10.C index dcb4f3e08fe..02ea64b7912 100644 --- a/gcc/testsuite/g++.dg/template/error10.C +++ b/gcc/testsuite/g++.dg/template/error10.C @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-options "-std=gnu++98" } // Origin: <tilps at hotmail dot com> // c++/9154: poor error message for ">>" vs "> >" in template argument list diff --git a/gcc/testsuite/g++.dg/template/invalid1.C b/gcc/testsuite/g++.dg/template/invalid1.C index 04b871068c7..d2fcca6d3cd 100644 --- a/gcc/testsuite/g++.dg/template/invalid1.C +++ b/gcc/testsuite/g++.dg/template/invalid1.C @@ -1,4 +1,5 @@ // PR c++/14883 +// { dg-options "-std=gnu++98" } template < class T > struct DomainTraits {}; template < int Dim > class Interval; diff --git a/gcc/testsuite/g++.dg/template/meminit1.C b/gcc/testsuite/g++.dg/template/meminit1.C index 90b0d7d8539..077bf60cb80 100644 --- a/gcc/testsuite/g++.dg/template/meminit1.C +++ b/gcc/testsuite/g++.dg/template/meminit1.C @@ -1,3 +1,4 @@ +// { dg-options "-std=gnu++98" } template <class T > struct S { diff --git a/gcc/testsuite/g++.dg/template/operator7.C b/gcc/testsuite/g++.dg/template/operator7.C index bd733da4d30..59c8b356cc7 100644 --- a/gcc/testsuite/g++.dg/template/operator7.C +++ b/gcc/testsuite/g++.dg/template/operator7.C @@ -1,4 +1,5 @@ //PR c++/27493 +// { dg-options "-std=gnu++98" } template<operator T> void foo() // { dg-error "before|template" } { diff --git a/gcc/testsuite/g++.dg/template/shift1.C b/gcc/testsuite/g++.dg/template/shift1.C index 22cb0de95be..a4ceec92c3a 100644 --- a/gcc/testsuite/g++.dg/template/shift1.C +++ b/gcc/testsuite/g++.dg/template/shift1.C @@ -1,4 +1,5 @@ // PR c++/18140 +// { dg-options "-std=gnu++98" } template <int N> struct IntHolder { static const int value = N; diff --git a/gcc/testsuite/g++.dg/template/static15.C b/gcc/testsuite/g++.dg/template/static15.C index 7302b7d808b..d8faa35a609 100644 --- a/gcc/testsuite/g++.dg/template/static15.C +++ b/gcc/testsuite/g++.dg/template/static15.C @@ -1,4 +1,5 @@ // PR c++/23667 +// { dg-options "-std=gnu++98" } template<int dummy> struct X diff --git a/gcc/testsuite/g++.old-deja/g++.pt/defarg6.C b/gcc/testsuite/g++.old-deja/g++.pt/defarg6.C index d5425d1a010..f5f7b7b2262 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/defarg6.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/defarg6.C @@ -1,4 +1,5 @@ // { dg-do assemble } +// { dg-options "-std=gnu++98" } template <class T> struct C { |

