mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-05 10:20:19 +08:00
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:
parent
48f46219bd
commit
4af96f9f61
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user