This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/5236: g++ 3.1 ICE in arg_assoc on invalid code
- From: snyder at fnal dot gov
- To: gcc-gnats at gcc dot gnu dot org
- Date: Tue, 1 Jan 2002 18:11:03 -0600
- Subject: c++/5236: g++ 3.1 ICE in arg_assoc on invalid code
- Reply-to: snyder at fnal dot gov
>Number: 5236
>Category: c++
>Synopsis: g++ 3.1 ICE in arg_assoc on invalid code
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue Jan 01 16:15:59 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: scott snyder
>Release: 3.1 20011231 (experimental)
>Organization:
>Environment:
System: Linux karma 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../egcs/configure --prefix=/usr/local/egcs --enable-threads=posix --enable-long-long
>Description:
g++ crashes when compiling the source below.
Note that the input is erroneous (missing `()' after `name').
>How-To-Repeat:
$ g++ -c crash.cc
crash.cc: In function `void do_instance_getattr(PyTypeObject*)':
crash.cc:15: internal error #980715
crash.cc:15: Internal compiler error in arg_assoc, at cp/decl2.c:4754
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
-------------------------------------------------
#include <typeinfo>
extern "C" int printf (...);
struct PyTypeObject{};
class type_object_base : public PyTypeObject
{
public:
virtual ~type_object_base(){}
};
static void do_instance_getattr(PyTypeObject* obj)
{
printf ("xxx %s\n", typeid(*static_cast<type_object_base*>(obj)).name);
}
-------------------------------------------------
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: