http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46277
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.11.02 22:47:40
Ever Confirmed|0 |1
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-02 22:47:40
UTC ---
[...@gnu-35 delta]$ cat pr46277.cc
typedef int ggBoolean;
class ggRGBE {
public:
ggRGBE();
};
template <class T> class ggIO {
ggBoolean readbody(int, int *);
ggRGBE *scanline;
};
template <class T> ggBoolean
ggIO<T>::readbody(int width, int *type)
{
int count = -1;
switch (*type)
{
case 0:
count = 3;
break;
case 1:
count = 2;
scanline = new ggRGBE[width];
break;
}
return count;
}
[...@gnu-35 delta]$ /export/gnu/import/rrs/166167/usr/bin/gcc -O2 -S pr46277.cc
pr46277.cc: In member function ‘ggBoolean ggIO<T>::readbody(int, int*)’:
pr46277.cc:21:34: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[...@gnu-35 delta]$