From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14440 invoked by alias); 27 Jan 2013 06:07:44 -0000 Received: (qmail 14327 invoked by uid 48); 27 Jan 2013 06:07:27 -0000 From: "cjxgm at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/56120] New: built-in SIMD with statement expression causes ICE: in iterative_hash_expr, at tree.c:6990 when optimization is on Date: Sun, 27 Jan 2013 06:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cjxgm at 126 dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-01/txt/msg02473.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56120 Bug #: 56120 Summary: built-in SIMD with statement expression causes ICE: in iterative_hash_expr, at tree.c:6990 when optimization is on Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: cjxgm@126.com Target: i686-pc-linux-gnu Build: /build/src/gcc-4.7.2/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c ++ --enable-shared --ena The following is the code: typedef float v4 __attribute__((vector_size(sizeof(float)*4))); v4 v4refract(v4 n, v4 v, float ior) { return n * ({ v4 __t = (n) * (v); __t[0] + __t[1] + __t[2]; }); } the compiler output: $ gcc -msse -O3 -c -o v.o v.c v.c: In function 'v4refract': v.c:5:11: internal compiler error: in iterative_hash_expr, at tree.c:6990 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Compilation succeeds when the optimization level is 0 but if the optimization level is above 0, whatever 1, 2 or 3, produces this ICE.