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]

"Internal compiler error 243"


The following short code fragment generates an internal compiler error
using an unmodified egcs-1.0.2 and egcs-1.0.3 on linux (both debian 1.3
and Redhat 5.0, i.e., both with libc5 and libc6) on a Pentium and a
Pentium II.  egcs was configured with no special options (except
--prefix).

If I remove all the integer template arguments, or the template argument
for the Xyz class, the error goes away.
------------------------------------------------------------------------
template <typename Output_t,
          typename Input_t = float,
          int min_val = -120, int max_val = 50, int step = 2>
class TableInterp
{
};

template <class T>
class Xyz {
public:
  TableInterp<float> junk;
};
------------------------------------------------------------------------
% uname -a
Linux kelp 2.0.30 #5 Tue Apr 7 10:13:43 PDT 1998 i686 unknown
					    # Also happens on i586.
% g++ -v
Reading specs from /usr/local/packages/egcs-1.0.2/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
					    # Also happens in 1.0.3.
% g++ bug_internal_error.cxx
bug_internal_error.cxx:11: Internal compiler error 243.
bug_internal_error.cxx:11: Please submit a full bug report to `egcs-bugs@cygnus.com'.

-- 
Gary Holt			(213)-740-3397
holt@lnc.usc.edu		http://lnc.usc.edu/~holt/


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