diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2007-04-27 15:31:35 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2007-04-27 15:31:35 +0000 |
commit | 4af96f9f619958bd62ae4280a01a9a51bd161063 (patch) | |
tree | 54ca0ae5d099b9db2170755a640a76027b614aa2 /gcc | |
parent | 48f46219bd21a0cdd955700b7c0b448d52f457cd (diff) | |
download | gcc-4af96f9f619958bd62ae4280a01a9a51bd161063.zip gcc-4af96f9f619958bd62ae4280a01a9a51bd161063.tar.gz gcc-4af96f9f619958bd62ae4280a01a9a51bd161063.tar.bz2 |
error.c (maybe_warn_variadic_templates): Variadic templates are now in C++0x, so only warn about them in C++98 mode.
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.
From-SVN: r124221
Diffstat (limited to 'gcc')
-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 4bab9ff..626c5d4 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 e393007..7329109 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. */ |