This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20991] [4.0/4.1 Regression] ICE in cgraph_mark_reachable_node
- From: "matz at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Apr 2005 02:40:29 -0000
- Subject: [Bug middle-end/20991] [4.0/4.1 Regression] ICE in cgraph_mark_reachable_node
- References: <20050413132503.20991.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From matz at suse dot de 2005-04-15 02:40 -------
We see this error in blender. I was able to reduce it quite a bit to this:
struct IMG_Rect {
virtual inline int getWidth() const;
virtual inline bool isEmpty() const;
virtual int getVisibility(int) const;
};
inline int IMG_Rect::getWidth() const
{
return 1;
}
inline bool IMG_Rect::isEmpty() const
{
return (getWidth() == 0);
}
void A()
{
IMG_Rect i_bnds;
if (i_bnds.isEmpty())
i_bnds.getWidth();
}
void B()
{
IMG_Rect i_bnds;
if (i_bnds.isEmpty())
i_bnds.getWidth();
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |matz at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20991