diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2016-09-12 20:18:16 +0000 |
---|---|---|
committer | Bernd Edlinger <edlinger@gcc.gnu.org> | 2016-09-12 20:18:16 +0000 |
commit | 54dcdb88954b1192b004f8b91fc17a42765c20eb (patch) | |
tree | 06828e718304e9c4c4e9aa0de02496b72d3bff1b /gcc/c/ChangeLog | |
parent | a313485bbdcdee77b1bf891823f9da8984d76bcc (diff) | |
download | gcc-54dcdb88954b1192b004f8b91fc17a42765c20eb.zip gcc-54dcdb88954b1192b004f8b91fc17a42765c20eb.tar.gz gcc-54dcdb88954b1192b004f8b91fc17a42765c20eb.tar.bz2 |
re PR c++/77496 (ICE in instantiate_type, at cp/class.c:8270)
gcc/c-family:
2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR c++/77496
* c-common.c (warn_for_omitted_condop): Also warn for boolean data.
gcc/c:
2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR c++/77496
* c-parser.c (c_parser_conditional_expression): Pass the rightmost
COMPOUND_EXPR to warn_for_omitted_condop.
gcc/cp:
2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR c++/77496
* call.c (build_conditional_expr_1): Call warn_for_omitted_condop.
* class.c (instantiate_type): Look through the SAVE_EXPR.
gcc/testsuite:
2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR c++/77496
* c-c++-common/warn-ommitted-condop.c: Add more test cases.
* g++.dg/ext/pr77496.C: New test.
* g++.dg/warn/pr77496.C: New test.
From-SVN: r240098
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r-- | gcc/c/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index a647263..b474de1 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> + + PR c++/77496 + * c-parser.c (c_parser_conditional_expression): Pass the rightmost + COMPOUND_EXPR to warn_for_omitted_condop. + 2016-09-07 David Malcolm <dmalcolm@redhat.com> * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use |