This is the mail archive of the
mailing list for the GCC project.
Re: PATCH to C front-end: PR 21759
"Joseph S. Myers" <email@example.com> writes:
| On Thu, 9 Jun 2005, Gabriel Dos Reis wrote:
| > + if (warn_cxx_compat && VOID_TYPE_P (ttr) && rhs != null_pointer_node
| > + && !VOID_TYPE_P (ttl))
| > + warning (OPT_Wc___compat, "request for implicit conversion from "
| > + "%qT to %qT not permitted in C++", rhstype, type);
| It's not clear this is a case which needs the "if (warn_...) rather than
| just controlling the warning through the first argument to warning.
| > + @item -Wc++-compat
| > + Warn about ISO C constructs that are outside of the common subset of
| > + ISO C and ISO C++, e.g. request for implicit conversion from
| Should be "e.g.," or "e.g.@:".
| > Index: testsuite/gcc.dg/Wcxx-compat-1.c
| Should also test the special case of not warning for conversion of
| (void *)0.
I'll add that.