diff options
| author | dgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-27 15:31:35 +0000 |
|---|---|---|
| committer | dgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-27 15:31:35 +0000 |
| commit | 509000b87ba2de22eeb2bc3d06653cc4843a6840 (patch) | |
| tree | 54ca0ae5d099b9db2170755a640a76027b614aa2 | |
| parent | 0d96cd2ba4ca5bf0e1681d683bd566b940fe1cea (diff) | |
| download | ppe42-gcc-509000b87ba2de22eeb2bc3d06653cc4843a6840.tar.gz ppe42-gcc-509000b87ba2de22eeb2bc3d06653cc4843a6840.zip | |
2007-04-27 Douglas Gregor <doug.gregor@gmail.com>
* error.c (maybe_warn_variadic_templates): Variadic templates are
now in C++0x, so only warn about them in C++98 mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124221 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/error.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4bab9ff9a23..626c5d4f808 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2007-04-27 Douglas Gregor <doug.gregor@gmail.com> + + * error.c (maybe_warn_variadic_templates): Variadic templates are + now in C++0x, so only warn about them in C++98 mode. + 2007-04-26 Andrew Pinski <andrew_pinski@playstation.sony.com> PR C++/30016 diff --git a/gcc/cp/error.c b/gcc/cp/error.c index e393007e11d..7329109e8a5 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -2528,7 +2528,7 @@ cp_cpp_error (cpp_reader *pfile ATTRIBUTE_UNUSED, int level, void maybe_warn_variadic_templates (void) { - if ((!flag_cpp0x || flag_iso) && !in_system_header) + if (!flag_cpp0x && !in_system_header) /* We really want to suppress this warning in system headers, because libstdc++ uses variadic templates even when we aren't in C++0x mode. */ |

