This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22008] New: ICE on valid code
- From: "ppluzhnikov at charter dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2005 18:18:01 -0000
- Subject: [Bug c++/22008] New: ICE on valid code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 <URL:http://gcc.gnu.org/bugs.html> 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