------- Comment #2 from zsojka at seznam dot cz  2010-08-31 23:16 -------
Created an attachment (id=21629)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21629&action=view)
reduced header file

#include <typeinfo>
can be replaced with:
namespace std { struct type_info { }; }

The second part of testcase is just:
----- testcase.C -----
#include "pr45471.h"

$ g++ -O2 pr45471.h
$ g++ -O2 pr45471.C -fno-strict-aliasing
pr45471.h: In constructor 'A<<anonymous> >::A() [with int <anonymous> = 0]':
pr45471.h:12:13:   instantiated from here
pr45471.h:8:5: internal compiler error: in typeid_ok_p, at cp/rtti.c:311
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.



Reply via email to