[Bug c++/22008] New: ICE on valid code
ppluzhnikov at charter dot net
gcc-bugzilla@gcc.gnu.org
Fri Jun 10 18:18:00 GMT 2005
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
More information about the Gcc-bugs
mailing list