public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/5236: g++ 3.1 ICE in arg_assoc on invalid code
@ 2002-01-01 16:16 snyder
  0 siblings, 0 replies; only message in thread
From: snyder @ 2002-01-01 16:16 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-02  0:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-01 16:16 c++/5236: g++ 3.1 ICE in arg_assoc on invalid code snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).