re PR c++/59631 (ICE using _Cilk_spawn without -fcilkplus)
authorBalaji V. Iyer <balaji.v.iyer@intel.com>
Thu, 9 Jan 2014 13:37:41 +0000 (13:37 +0000)
committerBalaji V. Iyer <bviyer@gcc.gnu.org>
Thu, 9 Jan 2014 13:37:41 +0000 (05:37 -0800)
commit9a74f20cd7ebc15e926de399d133103466e68c78
treeadb41b0b3fef66103c5e0819878c0ff1e538a137
parent63124c486dcd729695fc6ee33fc0ebe74379f589
re PR c++/59631 (ICE using _Cilk_spawn without -fcilkplus)

Fix for PR c++/59631.
+++ gcc/cp/ChangeLog
+2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c++/59631
+       * parser.c (cp_parser_postfix_expression): Added a new if-statement
+       and replaced an existing if-statement with else-if statement.
+       Changed an existing error message wording to match the one from the C
+       parser.
+

+++ gcc/testsuite/ChangeLog
+2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c++/59631
+       * gcc.dg/cilk-plus/cilk-plus.exp: Removed "-fcilkplus" from flags list.
+       * g++.dg/cilk-plus/cilk-plus.exp: Likewise.
+       * c-c++-common/cilk-plus/CK/spawnee_inline.c: Replaced second dg-option
+       with dg-additional-options.
+       * c-c++-common/cilk-plus/CK/varargs_test.c: Likewise.
+       * c-c++-common/cilk-plus/CK/steal_check.c: Likewise.
+       * c-c++-common/cilk-plus/CK/spawner_inline.c: Likewise.
+       * c-c++-common/cilk-plus/CK/spawning_arg.c: Likewise.
+       * c-c++-common/cilk-plus/CK/invalid_spawns.c: Added a dg-options tag.
+       * c-c++-common/cilk-plus/CK/pr59631.c: New testcase.
+

gcc/c/ChangeLog
+2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c++/59631
+       * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
+       statements with if-elseif statements.
+

From-SVN: r206463
14 files changed:
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_spawns.c
gcc/testsuite/c-c++-common/cilk-plus/CK/pr59631.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/cilk-plus/CK/spawnee_inline.c
gcc/testsuite/c-c++-common/cilk-plus/CK/spawner_inline.c
gcc/testsuite/c-c++-common/cilk-plus/CK/spawning_arg.c
gcc/testsuite/c-c++-common/cilk-plus/CK/steal_check.c
gcc/testsuite/c-c++-common/cilk-plus/CK/varargs_test.c
gcc/testsuite/g++.dg/cilk-plus/cilk-plus.exp
gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp