[Bug c/61191] cilkplus ICE on syntax error

2014-05-27 Thread izamyatin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61191

--- Comment #6 from Igor Zamyatin izamyatin at gmail dot com ---
Thanks!


[Bug c/61191] cilkplus ICE on syntax error

2014-05-26 Thread kyukhin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61191

--- Comment #1 from Kirill Yukhin kyukhin at gcc dot gnu.org ---
Author: kyukhin
Date: Mon May 26 10:00:23 2014
New Revision: 210929

URL: http://gcc.gnu.org/viewcvs?rev=210929root=gccview=rev
Log:
gcc/c/
PR c/61191
* c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
function parameters.

gcc/testsuite/
PR c/61191
* c-c++-common/cilk-plus/AN/pr61191.c: Check for correct handling of
the case with syntax error.


Added:
branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61191.c
Modified:
branches/gcc-4_9-branch/gcc/c/ChangeLog
branches/gcc-4_9-branch/gcc/c/c-array-notation.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


[Bug c/61191] cilkplus ICE on syntax error

2014-05-26 Thread kyukhin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61191

--- Comment #2 from Kirill Yukhin kyukhin at gcc dot gnu.org ---
Author: kyukhin
Date: Mon May 26 10:04:01 2014
New Revision: 210930

URL: http://gcc.gnu.org/viewcvs?rev=210930root=gccview=rev
Log:
gcc/c/
PR c/61191
* c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
function parameters.

gcc/testsuite/
PR c/61191
* c-c++-common/cilk-plus/AN/pr61191.c: Check for correct handling of
the case with syntax error.


Added:
trunk/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61191.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-array-notation.c
trunk/gcc/testsuite/ChangeLog


[Bug c/61191] cilkplus ICE on syntax error

2014-05-26 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61191

Uroš Bizjak ubizjak at gmail dot com changed:

   What|Removed |Added

 CC||kyukhin at gcc dot gnu.org
   Target Milestone|--- |4.9.1

--- Comment #3 from Uroš Bizjak ubizjak at gmail dot com ---
The testcase fails in c++ mode, where compiler reports

 error: expected primary-expression before ';' token

[Bug c/61191] cilkplus ICE on syntax error

2014-05-26 Thread izamyatin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61191

Igor Zamyatin izamyatin at gmail dot com changed:

   What|Removed |Added

 CC||izamyatin at gmail dot com

--- Comment #4 from Igor Zamyatin izamyatin at gmail dot com ---
Yeah, I think some more options for the test should be added


[Bug c/61191] cilkplus ICE on syntax error

2014-05-26 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61191

Uroš Bizjak ubizjak at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Uroš Bizjak ubizjak at gmail dot com ---
(In reply to Uroš Bizjak from comment #3)
 The testcase fails in c++ mode, where compiler reports

Fixed for 4.9 and 4.10 by additional patch [1].

[1] https://gcc.gnu.org/ml/gcc-patches/2014-05/msg02207.html