error.c (maybe_warn_variadic_templates): Variadic templates are now in C++0x, so...
authorDouglas Gregor <doug.gregor@gmail.com>
Fri, 27 Apr 2007 15:31:35 +0000 (15:31 +0000)
committerDoug Gregor <dgregor@gcc.gnu.org>
Fri, 27 Apr 2007 15:31:35 +0000 (15:31 +0000)
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

gcc/cp/ChangeLog
gcc/cp/error.c

index 4bab9ff9a2393d34f24cd6f110ee91ff124a6eeb..626c5d4f808b09ac73ae3ef8faf0d9741c5c2b0c 100644 (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
index e393007e11dbe00f95c3a3aada5446b42bb05064..7329109e8a5cf36c228446aaef122c32a1c7b395 100644 (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. */