Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 66444

Summary: [3.4/ICE] g++ typeid
Product: Gentoo Linux Reporter: roma1390
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED LATER    
Severity: blocker CC: eradicator
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25357
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: by request

Description roma1390 2004-10-05 11:29:17 UTC
<code>
#include <typeinfo>

using namespace std;

class A
{
public:
        A ();
        virtual int a() = 0;
};

int main(void)
{
        A *B;

        typeid(typeid(*B)).name();
}
</code>
usage:

g++ file.cpp

Reproducible: Always
Steps to Reproduce:
1.g++ file.cpp

Actual Results:  
file.cpp: In function `int main()':
file.cpp:16: internal compiler error: in expand_expr, at expr.c:8943
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccG94gSk.out file, please attach this to
your bugreport.



Expected Results:  
no crash
Comment 1 roma1390 2004-10-05 11:30:37 UTC
Created attachment 41161 [details]
by request

Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccG94gSk.out file, please attach this to
your bugreport.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-14 01:59:23 UTC
I just tested to confirm this is still happening in 3.4.4 on amd64.

Have you reported this upstream?
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-16 10:59:44 UTC
Works fine with gcc-4.0.1 on amd64 btw.
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2006-01-15 20:51:06 UTC
Keeping this open isn't doing us any good.  Waiting on the upstream patch, so marking this as later.