{"id":2226273,"url":"http://patchwork.ozlabs.org/api/patches/2226273/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260422103255.614998-1-tkaminsk@redhat.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/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,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260422103255.614998-1-tkaminsk@redhat.com>","list_archive_url":null,"date":"2026-04-22T10:32:00","name":"libstdc++: Expand tests for std::type_order.","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"25d06464e7ea52ec85f7378c8f1cf4e4c4327ad8","submitter":{"id":90409,"url":"http://patchwork.ozlabs.org/api/people/90409/?format=json","name":"Tomasz Kamiński","email":"tkaminsk@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260422103255.614998-1-tkaminsk@redhat.com/mbox/","series":[{"id":500983,"url":"http://patchwork.ozlabs.org/api/series/500983/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=500983","date":"2026-04-22T10:32:00","name":"libstdc++: Expand tests for std::type_order.","version":1,"mbox":"http://patchwork.ozlabs.org/series/500983/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2226273/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2226273/checks/","tags":{},"related":[],"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=PLm+7D53;\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=PLm+7D53","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 4g0x5v0n5pz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 20:58:11 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id C2EB348FEDA9\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 10:58:08 +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 4B92E51A3B82\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 10:33:01 +0000 (GMT)","from mx-prod-mc-06.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-20-C6xe_RXMNhmlikG-UNRPnw-1; Wed,\n 22 Apr 2026 06:32:59 -0400","from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93])\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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id CC3B61800473; Wed, 22 Apr 2026 10:32:57 +0000 (UTC)","from localhost (unknown [10.44.48.183])\n by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 3BA5A180047F; Wed, 22 Apr 2026 10:32:56 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org C2EB348FEDA9","OpenDKIM Filter v2.11.0 sourceware.org 4B92E51A3B82"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 4B92E51A3B82","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 4B92E51A3B82","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776853981; cv=none;\n b=fkEi1tQvCC3nmsk9fGgrWn3I88MjXcyANMwc47EsHkXCYMC3AcpJxbk1j7eV+QhZXHr+JQC+qma2HL2RfUmIbVaZhId6GlTmK5A6UlYJ7qkhjMqj9xWIbARJMJ9FpNAoOsE3EkQM9lcVrLoRRphvMie6c/42TM2SvKd45FvYINM=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776853981; c=relaxed/simple;\n bh=5+NMQ7OsFFbh7/Rs6rsRNl/kpSKzhDCuF+bSZZmUqZQ=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=ZLr0TgHVod+yA0jZdrn5BsMmBiXqPJ6PR1V5/rvAn22Xh8L+70l8Zlx51+iuGtHwS4PUqMjEaCpmek5wQlp7XiZPJe+NDm0P2//OOEAhutHtEJWKgxDsIY0hM6GR6DZe39dbli0KvWJ2d2zK1wzofGe6qv8JwMFqYAHz011RAa4=","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=1776853980;\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=+X1lpSppiOGhExJJa6p0GzkOecUmcZNKkGyCyfC2y5U=;\n b=PLm+7D53jattSorK3REtC8QZTdxlRT/55Z36Qx2f9/1baCRw6twTtPGkWr6wZT50fquYPG\n Q8Gp1ENj5K5P4wNnPvFUvkQEYZY3ith/1c4kvbLJ8Qyye87/3oUJomSTZUvTOyibbNuMOp\n PxngEAJrNXvyKeKPcaSVhan+ZoS1XYc=","X-MC-Unique":"C6xe_RXMNhmlikG-UNRPnw-1","X-Mimecast-MFC-AGG-ID":"C6xe_RXMNhmlikG-UNRPnw_1776853978","From":"=?utf-8?q?Tomasz_Kami=C5=84ski?= <tkaminsk@redhat.com>","To":"libstdc++@gcc.gnu.org,\n\tgcc-patches@gcc.gnu.org","Subject":"[PATCH] libstdc++: Expand tests for std::type_order.","Date":"Wed, 22 Apr 2026 12:32:00 +0200","Message-ID":"<20260422103255.614998-1-tkaminsk@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.93","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"33HHSDzV04TvnI8P65t7Q72xLfMYviumq1seBBkuHcc_1776853978","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":"Expanded test coverage to include:\n* array of unknown bounds\n* function types and pointers\n* data and function member pointers\n\nlibstdc++-v3/ChangeLog:\n\n\t* testsuite/18_support/comparisons/type_order/1.cc: New test.\n\ngcc/testsuite/ChangeLog:\n\n\t* g++.dg/cpp26/type-order1.C: New tests.\n---\nTested all *type_order* test both for libstdc++ and g++.\nOK for trunk?\n\n gcc/testsuite/g++.dg/cpp26/type-order1.C      | 21 +++++++++++++++++++\n .../18_support/comparisons/type_order/1.cc    | 21 +++++++++++++++++++\n 2 files changed, 42 insertions(+)","diff":"diff --git a/gcc/testsuite/g++.dg/cpp26/type-order1.C b/gcc/testsuite/g++.dg/cpp26/type-order1.C\nindex d5693570a47..bc7e87644a9 100644\n--- a/gcc/testsuite/g++.dg/cpp26/type-order1.C\n+++ b/gcc/testsuite/g++.dg/cpp26/type-order1.C\n@@ -92,3 +92,24 @@ constexpr eq <W, W> r;\n constexpr ne <V, W> s;\n constexpr eq <U <W>, U <W>> t;\n constexpr ne <U <V>, U <W>> u;\n+\n+constexpr eq <int[], int[]> v;\n+constexpr ne <int[], int[2]> w;\n+constexpr eq <S[], S[]> x;\n+constexpr ne <S[], S[2]> y;\n+\n+constexpr eq <int (), int ()> z;\n+constexpr eq <int () noexcept, int () noexcept> aa;\n+constexpr ne <int (), int () noexcept> ab;\n+constexpr eq <int () const, int () const> ac;\n+constexpr ne <int (), int () const> ad;\n+constexpr eq <int () &, int () &> ae;\n+constexpr ne <int (), int () &> af;\n+constexpr eq <int (*)() noexcept, int (*)() noexcept> ag;\n+constexpr ne <int (), int (*)()> ah;\n+\n+constexpr eq <int V::*, int V::*> ba;\n+constexpr ne <int V::*, long V::*> bb;\n+constexpr eq <int (V::*)() const& noexcept, int (V::*)() const& noexcept> bc;\n+constexpr ne <int (V::*)(), long (V::*)()> bd;\n+constexpr ne <int (V::*)(), int (*)()> be;\ndiff --git a/libstdc++-v3/testsuite/18_support/comparisons/type_order/1.cc b/libstdc++-v3/testsuite/18_support/comparisons/type_order/1.cc\nindex 63864fa98b4..7c428a93f96 100644\n--- a/libstdc++-v3/testsuite/18_support/comparisons/type_order/1.cc\n+++ b/libstdc++-v3/testsuite/18_support/comparisons/type_order/1.cc\n@@ -93,3 +93,24 @@ constexpr eq <W, W> r;\n constexpr ne <V, W> s;\n constexpr eq <U <W>, U <W>> t;\n constexpr ne <U <V>, U <W>> u;\n+\n+constexpr eq <int[], int[]> v;\n+constexpr ne <int[], int[2]> w;\n+constexpr eq <S[], S[]> x;\n+constexpr ne <S[], S[2]> y;\n+\n+constexpr eq <int (), int ()> z;\n+constexpr eq <int () noexcept, int () noexcept> aa;\n+constexpr ne <int (), int () noexcept> ab;\n+constexpr eq <int () const, int () const> ac;\n+constexpr ne <int (), int () const> ad;\n+constexpr eq <int () &, int () &> ae;\n+constexpr ne <int (), int () &> af;\n+constexpr eq <int (*)() noexcept, int (*)() noexcept> ag;\n+constexpr ne <int (), int (*)()> ah;\n+\n+constexpr eq <int V::*, int V::*> ba;\n+constexpr ne <int V::*, long V::*> bb;\n+constexpr eq <int (V::*)() const& noexcept, int (V::*)() const& noexcept> bc;\n+constexpr ne <int (V::*)(), long (V::*)()> bd;\n+constexpr ne <int (V::*)(), int (*)()> be;\n","prefixes":[]}