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
This commit is contained in:
Douglas Gregor 2007-04-27 15:31:35 +00:00 committed by Doug Gregor
parent 48f46219bd
commit 4af96f9f61
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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. */