This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal error (incorrect template subclass syntax)
- To: egcs-bugs at cygnus dot com
- Subject: internal error (incorrect template subclass syntax)
- From: "Colby O'Donnell" <colbster at cs dot wisc dot edu>
- Date: Sat, 13 Mar 1999 22:48:52 +0000 (GMT)
The following code (with incorrect syntax) causes an internal error on
EGCS 1.1 and 1.1.1, but not 1.0.3.
OS/Arch is: SunOS 5.6 Generic_105182-11 i86pc i386
File: condor_vector.h
=====================
#include <vector>
namespace condor {
template <class T>
class vector : public std::vector {
};
File: condor_vector.C
=====================
#include "condor_vector.h"
Output on 1.0.3 (Result: good)
=============================
% /s/egcs-1.0.3/bin/g++ -v
Reading specs from
/s/egcs-1.0.3/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/pgcc-2.90.29/specs
gcc version pgcc-2.90.29 980515 (egcs-1.0.3 release)
% /s/egcs-1.0.3/bin/g++ -c condor_vector.C
condor_vector.h:2: sorry, not implemented: namespace
In file included from condor_vector.C:1:
condor_vector.h:4: `vector' is not a class or namespace
condor_vector.h:4: confused by earlier errors, bailing out
Output on 1.1 (Result: internal error)
======================================
% /s/egcs-1.1/bin/g++ -v
Reading specs from
/s/egcs-1.1/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/pgcc-2.91.57/specs
gcc version pgcc-2.91.57 19980901 (egcs-1.1 release)
% /s/egcs-1.1/bin/g++ -c condor_vector.C
In file included from condor_vector.C:1:
condor_vector.h:4: Internal compiler error.
condor_vector.h:4: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
Output on 1.1.1 (Result: internal error)
========================================
% /s/egcs-1.1.1/bin/g++ -v
Reading specs from
/s/egcs-1.1.1/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/pgcc-2.91.60/specs
gcc version pgcc-2.91.60 19981201 (egcs-1.1.1 release)
% /s/egcs-1.1.1/bin/g++ -c
condor_vector.C
In file included from condor_vector.C:1:
condor_vector.h:4: Internal compiler error.
condor_vector.h:4: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
condor_vector.h:4: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.