From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29791 invoked by alias); 10 Jun 2005 18:18:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29772 invoked by uid 48); 10 Jun 2005 18:18:01 -0000 Date: Fri, 10 Jun 2005 18:18:00 -0000 From: "ppluzhnikov at charter dot net" To: gcc-bugs@gcc.gnu.org Message-ID: <20050610181800.22008.ppluzhnikov@charter.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22008] New: ICE on valid code X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg01487.txt.bz2 List-Id: The test was reduced from PlumHall test X_132p92: $ cat x_132p92.cc struct X_132p92 { static int k; // [1] X_132p92(const X_132p92 &x); // [2] }; void f_132p92(volatile X_132p92 x) // [3] { bool b = x.k >= 1; } $ g++4 -c x_132p92.cc x_132p92.cc: In function รข: x_132p92.cc:8: internal compiler error: in create_tmp_var, at gimplify.c:368 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Commenting out "static" at [1], copy-ctor at [2], or volatile at [3] "cures" the bug. -- Summary: ICE on valid code Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ppluzhnikov at charter dot net CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: same GCC host triplet: i386-redhat-linux, x86_64-unknown-linux-gnu GCC target triplet: same http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22008