[Bug tree-optimization/26757] [4.1 regression] ICE (Segmentation fault) building 3ddesktop source
ferdinandw+gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Mar 26 02:19:00 GMT 2006
------- Comment #5 from ferdinandw+gcc at gmail dot com 2006-03-26 02:19 -------
Here's a reduced version that gives me an ICE on FC5's gcc 4.1.0 with:
g++ -O -c 3ddeskd.cpp
=====================================
class Config {
public:
int texture_size;
int bg_size;
int autoacquire;
};
class Face {
public:
void load_texture_data (int texture_size) {
extern Config *cfg;
cfg->bg_size++;
}
};
class FaceSet {
private:
Face faces;
public:
void load_texture_data (int size) {
faces.load_texture_data(size);
};
};
Config *cfg;
FaceSet *face_set;
void load_background_image(void)
{
cfg->bg_size++;
extern Config *cfg;
cfg->autoacquire++;
}
void
humbug ()
{
if (cfg->autoacquire)
face_set->load_texture_data(cfg->texture_size);
}
=====================================
--
ferdinandw+gcc at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ferdinandw+gcc at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26757
More information about the Gcc-bugs
mailing list