https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63699
Bug ID: 63699 Summary: bootstrap fails with Apple clang 6.0 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: howarth at bromo dot med.uc.edu Current gcc trunk fails to bootstrap on x86_64-apple-darwin14 (using the other current proposed bootstrap patches for darwin) due to the following compiler error against the clang 6.0 compilers... make[4]: Entering directory `/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/libcc1' /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../gcc-5.0-20141029/libcc1 -I ../../gcc-5.0-20141029/libcc1/../include -I ../../gcc-5.0-20141029/libcc1/../libgcc -I .././gcc -I../../gcc-5.0-20141029/libcc1/../gcc -I ../../gcc-5.0-20141029/libcc1/../gcc/c -I ../../gcc-5.0-20141029/libcc1/../gcc/c-family -I ../../gcc-5.0-20141029/libcc1/../libcpp/include -I/sw/include -I/sw/include -W -Wall -fvisibility=hidden -g -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c -o plugin.lo ../../gcc-5.0-20141029/libcc1/plugin.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../gcc-5.0-20141029/libcc1 -I ../../gcc-5.0-20141029/libcc1/../include -I ../../gcc-5.0-20141029/libcc1/../libgcc -I .././gcc -I../../gcc-5.0-20141029/libcc1/../gcc -I ../../gcc-5.0-20141029/libcc1/../gcc/c -I ../../gcc-5.0-20141029/libcc1/../gcc/c-family -I ../../gcc-5.0-20141029/libcc1/../libcpp/include -I/sw/include -I/sw/include -W -Wall -fvisibility=hidden -g -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c ../../gcc-5.0-20141029/libcc1/plugin.cc -fno-common -DPIC -o .libs/plugin.o In file included from ../../gcc-5.0-20141029/libcc1/plugin.cc:34: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/gcc-plugin.h:29: ../../gcc-5.0-20141029/libcc1/../gcc/coretypes.h:62:1: warning: class 'rtx_def' was previously declared as a struct [-Wmismatched-tags] class rtx_def; ^ ../../gcc-5.0-20141029/libcc1/../gcc/coretypes.h:55:8: note: previous use is here struct rtx_def; ^ In file included from ../../gcc-5.0-20141029/libcc1/plugin.cc:34: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/gcc-plugin.h:33: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/hash-set.h:24: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/hash-table.h:200: ../../gcc-5.0-20141029/libcc1/../gcc/ggc.h:315:15: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags] static inline struct rtx_def * ^ ../../gcc-5.0-20141029/libcc1/../gcc/coretypes.h:62:7: note: previous use is here class rtx_def; ^ In file included from ../../gcc-5.0-20141029/libcc1/plugin.cc:34: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/gcc-plugin.h:33: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/hash-set.h:24: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/hash-table.h:200: ../../gcc-5.0-20141029/libcc1/../gcc/ggc.h:318:11: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags] return (struct rtx_def *) ggc_internal_alloc (s PASS_MEM_STAT); ^ ../../gcc-5.0-20141029/libcc1/../gcc/coretypes.h:62:7: note: previous use is here class rtx_def; ^ In file included from ../../gcc-5.0-20141029/libcc1/plugin.cc:40: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/tree-core.h:29: In file included from ../../gcc-5.0-20141029/libcc1/../gcc/double-int.h:23: ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:370:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:377:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:384:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:394:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:401:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:411:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:422:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:886:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:965:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:1127:1: warning: 'fixed_wide_int_storage' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class GTY(()) fixed_wide_int_storage ^ ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:286:18: note: did you mean class here? template <int N> struct fixed_wide_int_storage; ^~~~~~ class ../../gcc-5.0-20141029/libcc1/../gcc/wide-int.h:1152:3: warning: extraneous template parameter list in template specialization template <> ^~~~~~~~~~~ In file included from ../../gcc-5.0-20141029/libcc1/plugin.cc:40: ../../gcc-5.0-20141029/libcc1/../gcc/tree-core.h:1473:2: warning: struct 'symtab_node' was previously declared as a class [-Wmismatched-tags] struct symtab_node *symtab_node; ^ ../../gcc-5.0-20141029/libcc1/../gcc/ipa-ref.h:26:7: note: previous use is here class symtab_node; ^ In file included from ../../gcc-5.0-20141029/libcc1/plugin.cc:58: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:51:72: error: use of undeclared identifier 'do_not_use_isalnum_with_safe_ctype' inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isalnum(int __c) {return isalnum(__c);} ^ ../../gcc-5.0-20141029/libcc1/../include/safe-ctype.h:126:20: note: expanded from macro 'isalnum' #define isalnum(c) do_not_use_isalnum_with_safe_ctype ^