From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5945 invoked by alias); 24 Jan 2015 10:46:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5893 invoked by uid 48); 24 Jan 2015 10:46:43 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/64768] [4.8/4.9/5 Regression] internal compiler error: tree check:=?UTF-8?Q?=20expected=20tree=20that=20contains=20=E2=80=98decl=20with=20RTL=E2=80=99=20structure?=,=?UTF-8?Q?=20have=20=E2=80=98field=5Fdecl=E2=80=99=20in=20set=5Fdecl=5Frtl?=, at emit-rtl.c:1274 Date: Sat, 24 Jan 2015 10:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg02685.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64768 --- Comment #4 from Marek Polacek --- And even better: typedef int A[]; struct { int i; A a; } a; Clang accepts the code, we say (released compiler): ice2.c:2:19: error: array size missing in =E2=80=98a=E2=80=99 struct { int i; A a; } a; ^ and ICE with checking enabled since 4.6. >>From gcc-bugs-return-474692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jan 24 10:55:11 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16938 invoked by alias); 24 Jan 2015 10:55:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16851 invoked by uid 48); 24 Jan 2015 10:55:05 -0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64769] New: ICE: tree check: expected integer_cst, have parm_decl in simd_clone_clauses_extract, at omp-low.c:12503 with -fopenmp-simd Date: Sat, 24 Jan 2015 10:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg02686.txt.bz2 Content-length: 1889 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 for instructions. Tested revisions: r219989 - ICE 4_9 r219040 - ICE 4_8 r219093 - unknown agrument "-fopenmp-simd"