http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47711
Summary: [4.5, 4.6 Regression] (even trivial) PCH fails for Objective-C++ Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: objc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ia...@gcc.gnu.org Created attachment 23319 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23319 test header i686-darwin9 gives: $ ./gcc/g++ -Bgcc -x objective-c++-header ../tests/small-header.h -x none -o small-header.h.gch $ ./gcc/g++ -Bgcc -x objective-c++ ../tests/small-pch-test.m -x none -include small-header.h -L i686-apple-darwin9/libstdc++-v3/src/.libs/ -lobjc -o tt In file included from /usr/include/i386/types.h:70:0, from /usr/include/machine/types.h:37, from /usr/include/sys/types.h:78, from /usr/include/objc/objc.h:32, from /usr/include/objc/runtime.h:27, from /usr/include/objc/objc-runtime.h:1, from /usr/include/objc/Object.h:36, from ../tests/small-pch-test.m:4: /usr/include/i386/_types.h:76:15: internal compiler error: tree check: expected integer_cst, have in walk_subobject_offsets, at cp/class.c:3315 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. (i686-linux gave a segfault)