------- 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