aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2016-10-07 17:10:38 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2016-10-07 17:10:38 +0000
commitc09c4992ac138656415fc108edcab8d643fc89bb (patch)
tree303ab8a08b00dcbd206ce3f14a8c4ed3752ff2c6 /gcc/cp
parent125f0e39bfde6c0eb81a5409ce09112f4b875860 (diff)
downloadgcc-c09c4992ac138656415fc108edcab8d643fc89bb.zip
gcc-c09c4992ac138656415fc108edcab8d643fc89bb.tar.gz
gcc-c09c4992ac138656415fc108edcab8d643fc89bb.tar.bz2
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
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parser.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index f88e16d..085e0a5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ PR c++/77700
+ * parser.c (cp_parser_base_specifier): Fix a warning.
+
2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
PR c++/69733
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index c2bd442..8728991 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -23338,7 +23338,7 @@ cp_parser_base_specifier (cp_parser* parser)
cp_parser_nested_name_specifier_opt (parser,
/*typename_keyword_p=*/true,
/*check_dependency_p=*/true,
- typename_type,
+ /*type_p=*/true,
/*is_declaration=*/true);
/* If the base class is given by a qualified name, assume that names
we see are type names or templates, as appropriate. */