https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114033
Bug ID: 114033
Summary: Failure of test darwin-cfstring1.C
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: fxcoudert at gcc dot gnu.org
Target Milestone: ---
The test g++.dg/other/darwin-cfstring1.C fails on x86_64-apple-darwin23 for
-std=gnu++14 and later:
FAIL: g++.dg/other/darwin-cfstring1.C -std=gnu++14 (test for excess errors)
FAIL: g++.dg/other/darwin-cfstring1.C -std=gnu++17 (test for excess errors)
FAIL: g++.dg/other/darwin-cfstring1.C -std=gnu++20 (test for excess errors)
But the same test passes with -std=gnu++98:
PASS: g++.dg/other/darwin-cfstring1.C -std=gnu++98 (test for excess errors)
The excess errors that result in failure are:
Excess errors:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h:67:9:
error: 'unavailable' was not declared in this scope
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:420:9:
error: 'unavailable' was not declared in this scope