http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60648
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Status|UNCONFIRMED |NEW Last reconfirmed| |2014-03-25 CC| |trippels at gcc dot gnu.org Target Milestone|--- |4.9.0 Ever confirmed|0 |1 --- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 tmp % cat test.ii enum component { Ex, Ez, Hy, Permeability }; enum derived_component {}; enum direction { X, Y, Z, R, P, NO_DIRECTION }; derived_component a; component *b; component c; direction d; inline direction fn1 (component p1) { switch (p1) { case 0: return Y; case 1: return Z; case Permeability: return NO_DIRECTION; } return X; } inline component fn2 (direction p1) { switch (p1) { case 0: case 1: return component (); case Z: case R: return component (1); case P: return component (3); } } void fn3 () { direction e; switch (0) case 0: switch (a) { case 0: c = Ex; b[1] = Hy; } e = fn1 (b[1]); b[1] = fn2 (e); d = fn1 (c); } markus@x4 tmp % g++ -m32 -O2 -fPIC -c test.ii test.ii: In function ‘void fn3()’: test.ii:39:3: internal compiler error: Segmentation fault switch (p1) ^ Please submit a full bug report,