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]

ICE with g++ at expr.c:5701




	The following code expose a bug with g++ 19990822

####### Bug1.C #########################

// Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>

template<class T1>
class A {
public:
	static const unsigned id = 2;
};

template <class T1> inline
void f(const T1& p1) {
	const unsigned N = A<T1>::id;
	double errors[N];
}

int
main()
{
	f<int>(1);
}

########################################

delos->/u/corse/2/robotvis/gnu/egcs/bin/g++ Bug1.C
Bug1.C: In function `void f<int>(const int &)':
Bug1.C:19:   instantiated from here
Bug1.C:13: Internal compiler error in `expand_expr', at expr.c:5701
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.

delos->/u/corse/2/robotvis/gnu/egcs/bin/g++ -v                                  Reading specs from /u/corse/2/robotvis/gnu/egcs/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 19990822 (experimental)



 --------------------------------------------------------------------
 Theodore Papadopoulo
 Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
 --------------------------------------------------------------------




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