This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61191] New: cilkplus ICE on syntax error
- From: "jtaylor.debian at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 May 2014 09:18:39 +0000
- Subject: [Bug c/61191] New: cilkplus ICE on syntax error
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61191
Bug ID: 61191
Summary: cilkplus ICE on syntax error
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: jtaylor.debian at googlemail dot com
following file with a syntax error (wrong braces at end of line) results in an
ICE with gcc-4.9.0 and recent SVN head (14. may 2014):
double f(double * A, double * B)
{
return __sec_reduce_add((B[0:500])(;
}
$ gcc-4.10 -v
Using built-in specs.
COLLECT_GCC=/scratch/jtaylor/gcc/local-trunk/bin//gcc
COLLECT_LTO_WRAPPER=/scratch/jtaylor/gcc/local-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /media/jtaylor/external1/buildacc/gcc-trunk/configure
--disable-werror --enable-languages=c,c++,fortran --enable-tls
--prefix=/scratch/jtaylor/gcc/local-trunk --with-gmp=/usr --with-mpfr=/usr
--with-mpc=/usr --with-cloog=/usr --with-ppl=/usr --with-isl=/usr
--disable-shared --disable-bootstrap
Thread model: posix
gcc version 4.10.0 20140514 (experimental) (GCC)
$ gcc-4.10 -fcilkplus test.c -c
test.c: In function âfâ:
test.c:3:40: error: expected expression before â;â token
return __sec_reduce_add((B[0:500])(;
^
test.c:3:29: error: called object is not a function or function pointer
return __sec_reduce_add((B[0:500])(;
^
test.c:4:1: error: expected â)â before â}â token
}
^
test.c:4:1: error: expected â;â before â}â token
gcc: internal compiler error: Segmentation fault (program cc1)
0x40c663 execute
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:2848
0x40c969 do_spec_1
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:4652
0x40f420 process_brace_body
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5935
0x40f420 handle_braces
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5849
0x40d160 do_spec_1
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5306
0x40f420 process_brace_body
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5935
0x40f420 handle_braces
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5849
0x40d160 do_spec_1
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5306
0x40d6ab do_spec_1
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5421
0x40f420 process_brace_body
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5935
0x40f420 handle_braces
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5849
0x40d160 do_spec_1
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5306
0x40f420 process_brace_body
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5935
0x40f420 handle_braces
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5849
0x40d160 do_spec_1
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5306
0x40f420 process_brace_body
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5935
0x40f420 handle_braces
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5849
0x40d160 do_spec_1
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5306
0x40f420 process_brace_body
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5935
0x40f420 handle_braces
/media/jtaylor/external1/buildacc/gcc-trunk/gcc/gcc.c:5849