From nobody Sat Jan 07 23:51:05 2023 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NqH612x9xz2pTLJ for ; Sat, 7 Jan 2023 23:51:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NqH61168Hz477n for ; Sat, 7 Jan 2023 23:51:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673135465; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9rcRyy9HQ9uiN2wq87HwvC4/cdU+7iHOsK+ucSQUa2c=; b=RQRzUiJbrmjbwdNJBO3iGvn5BhvTR2i6MXGxsxrXDAJ7GU+f4grx7KFH3hBQLlCMNsd18n uK9zuju5jmzLs1bBnRqZ+E5YgBpIAE5kheDBqqWnDbJkH+shTLLEg0aHnrC+qEgs1hydvd R0asKJG2WFxHXUjhxgh1qPIl2qH1YIgj1cfbKPoDAOUQhBvb9+jUpL5339uhjD8bRTxy5B lsg9bwax1HB2Vbb2731ybuHnJcpUD4dOZack9For1bLDFh8aobAbQrgL5OFvIDmrJHjJOs 4OVQzJ9gmQBih+I95vOYz2/WzfLDX/p/ny46bvVDFQ4P5RA+Ftl5n/hC4OzYEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673135465; a=rsa-sha256; cv=none; b=r+v6i8BaeL/Pe+2Wc+Bv30H+6NzS1957PmlMU/3u4IYRMmZt7McojkfKs7n4ZS1RnlsVbf SlJD2bd7uce/qdbOf8NS8X2HPmTfwdANuIyEjDn7V+1M/DfWFto86ersk+Y0eHaer8gDUS ANeQDhk9Ll+zcq9QR8QMdXA+YIsW/PVU/aGEaSp/3rOgLB2U+fltMMl7hCsNUD6xFIgXgk flv5GftgyAg/yvqlyua+MS6uRz+wVhv5bqzdjV3SJizQlXgkoQxmVE8onWjOcEnqmW+mVj kNeylnazQIWAvb/UmKJ/asSmsltqAfZzxQuMWYw3xywNLDVBXwQgmg95O54SPQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NqH610BpMzSc8 for ; Sat, 7 Jan 2023 23:51:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 307Np4Sn000226 for ; Sat, 7 Jan 2023 23:51:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 307Np41m000225 for standards@FreeBSD.org; Sat, 7 Jan 2023 23:51:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 268820] index C++ variable overloading Date: Sat, 07 Jan 2023 23:51:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268820 --- Comment #2 from Mark Millard --- (In reply to Mark Millard from comment #1) It looks like anything with __POSIX_VISIBLE=3D=3D0 (such as adding a line at the beginning to define _C11_SOURCE to avoid POSIX) tends to get errors, such as: In file included from string_index_use.cpp:5: In file included from /usr/include/c++/v1/string:523: In file included from /usr/include/c++/v1/__functional_base:23: /usr/include/c++/v1/new:327:11: error: no member named 'posix_memalign' in = the global namespace (void)::posix_memalign(&__result, __alignment, __size); ~~^ In file included from string_index_use.cpp:5: In file included from /usr/include/c++/v1/string:525: In file included from /usr/include/c++/v1/algorithm:667: In file included from /usr/include/c++/v1/functional:506: In file included from /usr/include/c++/v1/__functional/function.h:22: In file included from /usr/include/c++/v1/__memory/shared_ptr.h:35: In file included from /usr/include/c++/v1/atomic:524: In file included from /usr/include/c++/v1/__thread/timed_backoff_policy.h:1= 6: /usr/include/c++/v1/__threading_support:411:11: error: use of undeclared identifier 'nanosleep' while (nanosleep(&__ts, &__ts) =3D=3D -1 && errno =3D=3D EINTR); ^ 2 errors generated. __BSD_VISIBLE=3D=3D0 is associated with __POSIX_VISIBLE=3D=3D0 by default. So it looks like __BSD_VISIBLE=3D=3D0 is not really an alternative for avoiding the issue that you hit. --=20 You are receiving this mail because: You are the assignee for the bug.=