https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63834
Bug ID: 63834 Summary: [5 Regression] unrecognised __has_attribute(xxxx) test causes segv (prevents bootstrap on darwin12). Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: iains at gcc dot gnu.org Created attachment 33947 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33947&action=edit Test header The changes at r217292 have introduced a segv for the attached testcase. AFAICT the code is valid, this is used in a key system header on x86-64-darwin so is a bootstrap blocker. Fails at stage#2 because libiberty's config.h contains nonsense. --- ./gcc/xgcc -Bgcc avtest.h -E avtest.h:1:0: internal compiler error: Segmentation fault: 11 #ifdef __has_attribute ^ avtest.h:1:0: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) Abort trap: 6