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