https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96736
Bug ID: 96736 Summary: FAIL: 17_intro/headers/c++1998/all_attributes.cc on Darwin Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr CC: iains at gcc dot gnu.org, redi at gcc dot gnu.org Target Milestone: --- Host: x86_64-apple-darwin19.6.0 Target: x86_64-apple-darwin19.6.0 Build: x86_64-apple-darwin19.6.0 At r11-2757 (but not at r11-2711) I see FAIL: 17_intro/headers/c++1998/all_attributes.cc (test for excess errors) FAIL: 17_intro/headers/c++2011/all_attributes.cc (test for excess errors) FAIL: 17_intro/headers/c++2014/all_attributes.cc (test for excess errors) FAIL: 17_intro/headers/c++2017/all_attributes.cc (test for excess errors) FAIL: 17_intro/headers/c++2020/all_attributes.cc (test for excess errors) The failure is In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:42,^M from /opt/gcc/build_w/x86_64-apple-darwin19.6.0/libstdc++-v3/include/cassert:44,^M from /opt/gcc/build_w/x86_64-apple-darwin19.6.0/libstdc++-v3/include/x86_64-apple-darwin19.6.0/bits/stdc++.h:33,^M from /opt/gcc/build_w/x86_64-apple-darwin19.6.0/libstdc++-v3/include/x86_64-apple-darwin19.6.0/bits/stdtr1c++.h:29,^M from /opt/gcc/build_w/x86_64-apple-darwin19.6.0/libstdc++-v3/include/x86_64-apple-darwin19.6.0/bits/extc++.h:30,^M from /opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:39:^M /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:171: error: macro "__has_attribute" requires an identifier^M /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:171: error: missing '(' in expression^M compiler exited with status 1