https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64769
Bug ID: 64769 Summary: ICE: tree check: expected integer_cst, have parm_decl in simd_clone_clauses_extract, at omp-low.c:12503 with -fopenmp-simd Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 34564 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34564&action=edit reduced testcase Crashes only when compiled as C++. Identical C code doesn't crash (or when '-x c' is passed). Compiler output: $ gcc -fopenmp-simd testcase.C testcase.C:5:1: internal compiler error: tree check: expected integer_cst, have parm_decl in simd_clone_clauses_extract, at omp-low.c:12503 } ^ 0x104e20c tree_check_failed(tree_node const*, char const*, int, char const*, ...) /mnt/svn/gcc-trunk/gcc/tree.c:9290 0x5b4284 tree_int_cst_elt_check(tree_node*, int, char const*, int, char const*) /mnt/svn/gcc-trunk/gcc/tree.h:3046 0xcdcd4e tree_int_cst_elt_check(tree_node*, int, char const*, int, char const*) /mnt/svn/gcc-trunk/gcc/tree.h:3049 0xcdcd4e simd_clone_clauses_extract /mnt/svn/gcc-trunk/gcc/omp-low.c:12503 0xcdcd4e expand_simd_clones /mnt/svn/gcc-trunk/gcc/omp-low.c:13488 0xcdcd4e ipa_omp_simd_clone /mnt/svn/gcc-trunk/gcc/omp-low.c:13579 0xcdcd4e execute /mnt/svn/gcc-trunk/gcc/omp-low.c:13607 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r219989 - ICE 4_9 r219040 - ICE 4_8 r219093 - unknown agrument "-fopenmp-simd"