This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Error in 971122 i686-pc-linux-gnu
- To: Ross Alexander <rossa at stimpy dot math dot auckland dot ac dot nz>
- Subject: Error in 971122 i686-pc-linux-gnu
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Thu, 27 Nov 1997 21:41:44 GMT
- Cc: egcs at cygnus dot com, law at cygnus dot com, Jason Merrill <jason at cygnus dot com>
- References: <199711280306.QAA11798@stimpy.math.auckland.ac.nz>
- Reply-To: mmitchell at usa dot net
Jason et. al. --
I wonder if the implicit typename stuff should be disabled for the
release. There seem to be a lot of internal errors being reported in
cases where the users should have used 'typename'. (Ross, your code
is illegal: you have to say 'typename X::A'.) At the very least, we
could issue a warning on this so that users would have a hint about
what they might do to avoid triggering the crash.
>>>>> "Ross" == Ross Alexander <rossa@stimpy.math.auckland.ac.nz> writes:
Ross> I get an error 9 in the following code
Ross> ----------------------------------------------------------------------
Ross> template <class X> int foo<X> (X a) { X::A b; // = a; }
Ross> ----------------------------------------------------------------------
Ross> stimpy:~$ g++ -v test.cc Reading specs from
Ross> experimental). test.cc:2: Internal compiler error 9.
Ross> test.cc:2: Please submit a full bug report to
Ross> `egcs-bugs@cygnus.com'. stimpy:~$
Ross> ----------------------------------------------------------------------
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu