This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
"typename" and Internal compiler error 90
- To: egcs-bugs at cygnus dot com
- Subject: "typename" and Internal compiler error 90
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Mon, 24 Nov 1997 22:41:28 +0100 (MET)
The following program causes an
gub.C: Internal compiler error 90.
gub.C: Please submit a full bug report to `egcs-bugs@cygnus.com'.
for
gcc version egcs-2.90.18 971122 (gcc2-970802 experimental)
bootstrapped
under sparc-sun-solaris2.5.1
at those two lines, where "typename" is commented.
---------- cut here ----------------------------------------------------
#include <vector>
template <class T>
class TPROGRAM
{
typedef vector< T > ITEMS;
class const_iterator
{
/*typename*/ ITEMS::const_iterator i;
const_iterator(const /*typename*/ ITEMS::const_iterator i2) {
i=i2;
}
};
};
---------- cut here ----------------------------------------------------
As this very same program compiles fine under gcc 2.7.2.1 (and there are
probably lots of code out there _not_ yet using "typename") this really
should be fixed before the first release, shouldn't it?
Ciao,
Gerald
--
Gerald Pfeifer (Jerry) Vienna University of Technology
pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/