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]

A small C++ program; templates, namespace, and internal compiler error 980519


By executing

% gcc -v --save-temps error-generator.cc 2>error-output

the compiler gives me internal compiler error 980519.

The complete output of the command (error-output) and the preprocessed
source code (error-generator.ii) are enclosed in this message.
Since they are so small in size, I haven't compressed them in any way.


--
Seppo Enarvi
senarvi@iki.fi
# 1 "error-generator.cc"
namespace NS {


    template <class T> void functionTemplateInNamespace() {}


}


class C {


 public:


    template <class T> void functionTemplateInClass() {

	NS::functionTemplateInNamespace<T>();
    }


    void function() {

	functionTemplateInClass<int>();
    }


};
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ error-generator.cc error-generator.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++-2
 /usr/local/include
 /usr/i386-redhat-linux/include
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus error-generator.ii -quiet -dumpbase error-generator.cc -version -o error-generator.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
error-generator.cc: In method `void C::functionTemplateInClass<int>()':
error-generator.cc:24:   instantiated from here
error-generator.cc:18: Internal compiler error 980519.
error-generator.cc:18: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
error-generator.cc:18: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.

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