OSDN Git Service

2007-04-27 Douglas Gregor <doug.gregor@gmail.com>
authordgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Apr 2007 15:31:35 +0000 (15:31 +0000)
committerdgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Apr 2007 15:31:35 +0000 (15:31 +0000)
* 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

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

index 4bab9ff..626c5d4 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 e393007..7329109 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. */