This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Variadic templates, third revision (1/3)


"Doug Gregor" <doug.gregor@gmail.com> writes:

| On 02 Nov 2006 15:33:23 +0100, Gabriel Dos Reis
| <gdr@integrable-solutions.net> wrote:
| > you should update cxx-pretty-print.c too.
| 
| You're right; thanks!
| 
| > "Doug Gregor" <doug.gregor@gmail.com> writes:
| >
| >
| >    +/* Warn about the use of variadic templates when appropriate. */
| >    +void
| >    +maybe_warn_variadic_templates (void)
| >    +{
| >    +  if (!flag_cpp0x && !in_system_header)
| >    +    pedwarn ("ISO C++ does not include variadic templates");
| >    +}
| >
| > Tha flag should check for GNU C++0X, not just C++0X.
| 
| Because they aren't in the working paper?

That is the policy we all agreed on, right?


Also, you should not check explicitly for in_system_header -- that is
taken care of by the diagnostic machinery.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]