This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/45471] ICE with PCH and differening strict-aliasing settings
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2010 23:16:46 -0000
- Subject: [Bug pch/45471] ICE with PCH and differening strict-aliasing settings
- References: <bug-45471-14164@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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