This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug pch/45471] ICE with PCH and differening strict-aliasing settings



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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45471


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]