re PR c/57490 (ICE on c-c++-common/cilk-plus/AN/an-if.c)
authorBalaji V. Iyer <balaji.v.iyer@intel.com>
Tue, 20 Aug 2013 01:10:56 +0000 (01:10 +0000)
committerBalaji V. Iyer <bviyer@gcc.gnu.org>
Tue, 20 Aug 2013 01:10:56 +0000 (18:10 -0700)
commit318cda8521f7c4a390d42c3cd0cbba427a01eda7
tree313e7fa61465ceac80856ae997ce3ae03f2e5254
parente42c64cb6dca35a4979db08706033d89b94f196f
re PR c/57490 (ICE on c-c++-common/cilk-plus/AN/an-if.c)

Fix for PR c/57490.

gcc/c/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * c-array-notation.c (fix_conditional_array_notations_1): Added a
+       check for truth values.
+       (expand_array_notation_exprs): Added truth values case.  Removed an
+       unwanted else.  Added for-loop to walk through subtrees in default
+       case.
+

gcc/cp/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * cp-array-notation.c (cp_expand_cond_array_notations): Added a
+       check for truth values.
+       (expand_array_notation_exprs): Added truth values case.  Removed an
+       unwanted else.  Added for-loop to walk through subtrees in default
+       case.
+       * call.c (build_cxx_call): Inherited the type of the array notation for
+       certain built-in array notation functions.
+

gcc/testsuite/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * c-c++-common/cilk-plus/AN/pr57490.c: New test.
+

From-SVN: r201867
gcc/c/ChangeLog
gcc/c/c-array-notation.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-array-notation.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cilk-plus/AN/pr57490.c [new file with mode: 0644]