{"id":2219766,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2219766/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260404084024.31492-1-tkaminsk@redhat.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/1.1/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260404084024.31492-1-tkaminsk@redhat.com>","date":"2026-04-04T08:40:01","name":"[committed] libstdc++: Define foo() in optional/ref/access.cc test.","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"2ab79a94baf8700c7cb1b724646b3735d0acabae","submitter":{"id":90409,"url":"http://patchwork.ozlabs.org/api/1.1/people/90409/?format=json","name":"Tomasz Kaminski","email":"tkaminsk@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260404084024.31492-1-tkaminsk@redhat.com/mbox/","series":[{"id":498707,"url":"http://patchwork.ozlabs.org/api/1.1/series/498707/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=498707","date":"2026-04-04T08:40:01","name":"[committed] libstdc++: Define foo() in optional/ref/access.cc test.","version":1,"mbox":"http://patchwork.ozlabs.org/series/498707/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2219766/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2219766/checks/","tags":{},"headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=BtmEXcZ0;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=BtmEXcZ0","sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com","sourceware.org; spf=pass smtp.mailfrom=redhat.com","server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.133.124"],"Received":["from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnpwC1mrFz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 19:41:15 +1100 (AEDT)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 353B14BA23E1\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  4 Apr 2026 08:41:13 +0000 (GMT)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id 2C6E44BA23DA\n for <gcc-patches@gcc.gnu.org>; Sat,  4 Apr 2026 08:40:32 +0000 (GMT)","from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-530-8rjOnQ7NMR-Yw1ElaJlcNQ-1; Sat,\n 04 Apr 2026 04:40:28 -0400","from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 8081B18002D6; Sat,  4 Apr 2026 08:40:27 +0000 (UTC)","from localhost (unknown [10.44.48.36])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id C9F431800361; Sat,  4 Apr 2026 08:40:26 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 353B14BA23E1","OpenDKIM Filter v2.11.0 sourceware.org 2C6E44BA23DA"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 2C6E44BA23DA","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 2C6E44BA23DA","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775292032; cv=none;\n b=JWsPoQ+g87z5UlavHIl2s00wkh1+AsFkXtkcfvnLmRsd3kt+Ls/zK3xpuICp+gmAfbYCtsKSE7YO83D3urjhMXVD39uiYta949CiWa4NbOLfGPLsBmfYT7mWz+fFFuixOtzFWW08gfDUNfj7tI9LNDhq4USe9sEecyumBH09T7c=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775292032; c=relaxed/simple;\n bh=DMV1b8sBGiv9pUZvjRDBl/tg2JWbiK3P7oCPjgUNpMo=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=HgpOWfFVMnZrPRx7DWbkkmFgrrIsabKNZxnA98Qo0Ph6FL3G8/n6KZkxehyn5A/FvPZJiVbJF0TN/QOpaeMB6Ac1epcRcJXLIllYjlibNmhNjSMpzGe1WIH6nlwu5Oj1g7G/76UthlexqH2VDGzGm1uIUp8ePjQbWMF5gGlNCQI=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1775292031;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=oabyY2SEHfBWe6XHr1y0gY2QjEKXPHQ0RbuFINBkDuc=;\n b=BtmEXcZ09490rm2Lrv+JqX6n0QpP1ko/gy4bADIgOgLO6H7MOo7HI8rYEisXOrKHUBNuVf\n IzIUcqiRF37ZLATYx5UlARw0QRsGUSD95UNbgXqMGNhgMXnpSOPZ8G+9W31tOScdB+7Oks\n Zt2hia0kSlwwm0KFpaTvX3/Cgj7y0i4=","X-MC-Unique":"8rjOnQ7NMR-Yw1ElaJlcNQ-1","X-Mimecast-MFC-AGG-ID":"8rjOnQ7NMR-Yw1ElaJlcNQ_1775292027","From":"=?utf-8?q?Tomasz_Kami=C5=84ski?= <tkaminsk@redhat.com>","To":"libstdc++@gcc.gnu.org,\n\tgcc-patches@gcc.gnu.org","Subject":"[committed] libstdc++: Define foo() in optional/ref/access.cc test.","Date":"Sat,  4 Apr 2026 10:40:01 +0200","Message-ID":"<20260404084024.31492-1-tkaminsk@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.111","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"YdTEY_wlFOyUtoeC_I9pnApNROKgc926LPoSlU0ZqvA_1775292027","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","content-type":"text/plain; charset=\"US-ASCII\"; x-default=true","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"},"content":"Fix undefined reference error when compiling with -O0.\n\nlibstdc++-v3/ChangeLog:\n\n\t* testsuite/20_util/optional/ref/access.cc: Provide\n\tdefinition for foo().\n---\nPushed to trunk. Tested on x86_64-linux.\n\n libstdc++-v3/testsuite/20_util/optional/ref/access.cc | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/libstdc++-v3/testsuite/20_util/optional/ref/access.cc b/libstdc++-v3/testsuite/20_util/optional/ref/access.cc\nindex 37c8ff355a6..dcd16a24b3c 100644\n--- a/libstdc++-v3/testsuite/20_util/optional/ref/access.cc\n+++ b/libstdc++-v3/testsuite/20_util/optional/ref/access.cc\n@@ -100,7 +100,7 @@ static_assert(  has_value_or_for<int(*)()> );\n int i;\n NonMovable nm;\n int arr[2];\n-int foo();\n+int foo() { return 1; }\n \n int main()\n {\n","prefixes":["committed"]}