No Subject

Shmuel Tomer tomer@kodak.com
Tue Mar 3 11:08:00 GMT 1998


The attached code causes the following error:

g++     bug.cc   -o bug
bug.cc: In method `void X<T>::operator ()(long int ...)':
bug.cc:17: Internal compiler error.
bug.cc:17: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [bug] Error 1

Compilation exited abnormally with code 2 at Tue Mar  3 13:56:31

----------------------------------------------------------------------

#include <stdarg.h>

template <class T>
class X
{
  public:

    void operator () (long a, ...) 
    {
	long j, d;

	va_list args;
	va_start(args, a);

	for (d = 1; d < 10; d++)
	    j = va_arg(args, long);
    }

  private:
    T *_data;
};

----------------------------------------------------------------------

Platform: SunOS bear 5.5.1 Generic_103640-14 sun4u sparc SUNW,Ultra-1
Version:  gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)



More information about the Gcc-bugs mailing list