This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/46277] [4.6 Regression] Revision 166167 failed to build 252.eon in SPEC CPU 2000


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 ---
[hjl@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;
}
[hjl@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.
[hjl@gnu-35 delta]$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]