]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-typeck.c
re PR c/21759 (Implement warning for codes at the intersection of C and C++)
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Thu, 9 Jun 2005 22:21:48 +0000 (22:21 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Thu, 9 Jun 2005 22:21:48 +0000 (22:21 +0000)
commitb7e20b53f60d973debcd771c882cc44b13db38b1
tree5ba1ed694692d32697b04063c0e9fb9c31bfdbd2
parent92f5e87c2ba9b5f83b8b465a43e43d41a2801265
re PR c/21759 (Implement warning for codes at the intersection of C and C++)

        PR c/21759
        * c.opt (Wc++-compat): New.
        * doc/invoke.texi (-Wc++-compat): Document.
        * c-typeck.c (convert_for_assignment): Check for implicit
        conversion void* -> T*.
testsuite/
        * gcc.dg/Wcxx-compat-1.c: New.

From-SVN: r100806
gcc/ChangeLog
gcc/c-typeck.c
gcc/c.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wcxx-compat-1.c [new file with mode: 0644]