From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27765 invoked by alias); 28 Jul 2004 19:12:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27757 invoked by uid 48); 28 Jul 2004 19:12:21 -0000 Date: Wed, 28 Jul 2004 19:12:00 -0000 From: "jurka at ejurka dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20040728191218.16806.jurka@ejurka.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/16806] New: Internal compiler error: Error reporting routines re-entered. X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg03389.txt.bz2 List-Id: I don't know what I'm doing with c++ and was trying to get something to compile when I got an internal compiler error. Clearly my code is wrong, but still shouldn't have an internal error. I was trying to compile the following: #include template class myclass { public: template< T > int Get< typename U >(); template int Get() { return 1;} template int Get() { return 2;} }; int main() { myclass c; std::cerr << c.Get << std::endl; return 0; } g++ -Wall specnothing.cpp specnothing.cpp:6: error: parse error before `>' token specnothing.cpp:8: error: template-id `Get' in declaration of primary template specnothing.cpp:9: error: template-id `Get' in declaration of primary template specnothing.cpp: In instantiation of `myclass': specnothing.cpp:13: instantiated from here specnothing.cpp:9: error: `template > int myclass::Get() [with T = enumerator, T = int]' and `template > int myclass::Get() [with T = enumerator, T = int]' cannot be overloaded specnothing.cpp: In function `int main()': specnothing.cpp:14: error: no match for 'operator<<' in 'std::cerr << Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. For Debian GNU/Linux specific bug reporting instructions, see . g++ -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.4 (Debian 1:3.3.4-4) uname -a Linux doug 2.4.22 #2 SMP Sat Sep 27 20:15:00 PDT 2003 i686 GNU/Linux -- Summary: Internal compiler error: Error reporting routines re- entered. Product: gcc Version: 3.3.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jurka at ejurka dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16806