This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27826] [4.1 Regression] ICE in copy_to_mode_reg
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2006 03:39:35 -0000
- Subject: [Bug c++/27826] [4.1 Regression] ICE in copy_to_mode_reg
- References: <bug-27826-12759@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-06-01 03:39 -------
Reduced testcase:
struct GeometryType
{
int basicType_:16;
bool operator==(const GeometryType& other) const {
return basicType_==other.basicType_;
}
};
struct Geometry {
GeometryType type () const{};
};
void f(void);
const Geometry &geometry ();
int countLevelEntities(int level)
{
GeometryType type;
if(geometry().type() == type)
f();
}
--------
I want to say Mark's bitfield patch fixes this for 4.2.0.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|middle-end |c++
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-06-01 03:39:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27826