This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25357] New: ICE in typeid
- From: "halcy0n at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Dec 2005 04:01:00 -0000
- Subject: [Bug c++/25357] New: ICE in typeid
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code fails on 3.3.6 and 3.4.5. It does work on 4.0.2 and 4.1.0,
so I'm not sure if a fix would be backported to the 3.4 branch.
#include <typeinfo>
using namespace std;
class A
{
public:
A ();
virtual int a() = 0;
};
int main(void)
{
A *B;
typeid(typeid(*B)).name();
}
--
Summary: ICE in typeid
Product: gcc
Version: 3.4.5
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: halcy0n at gentoo dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25357