re PR c++/77700 (suspicios code in cp/parser.c)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 7 Oct 2016 17:10:38 +0000 (17:10 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Fri, 7 Oct 2016 17:10:38 +0000 (17:10 +0000)
commitc09c4992ac138656415fc108edcab8d643fc89bb
tree303ab8a08b00dcbd206ce3f14a8c4ed3752ff2c6
parent125f0e39bfde6c0eb81a5409ce09112f4b875860
re PR c++/77700 (suspicios code in cp/parser.c)

2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/77700
        * c-common.c (c_common_truthvalue_conversion): Warn also for
        suspicious enum values in boolean context.

cp:
2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/77700
        * parser.c (cp_parser_base_specifier): Fix a warning.

testsuite:
2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/77700
        * c-c++-common/Wint-in-bool-context.c: Update test.

From-SVN: r240867
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wint-in-bool-context.c