{"id":2222135,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2222135/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/adlPurgOZWuBTqIS@tucnak/","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":"<adlPurgOZWuBTqIS@tucnak>","date":"2026-04-10T19:30:02","name":"testsuite: Fix up g++.dg/reflect/type_trait14.C for -fimplicit-constexpr [PR124844]","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"a13dd822cc4388b1f1c146aaa8dc7bd10479335a","submitter":{"id":671,"url":"http://patchwork.ozlabs.org/api/1.1/people/671/?format=json","name":"Jakub Jelinek","email":"jakub@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/adlPurgOZWuBTqIS@tucnak/mbox/","series":[{"id":499495,"url":"http://patchwork.ozlabs.org/api/1.1/series/499495/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=499495","date":"2026-04-10T19:30:02","name":"testsuite: Fix up g++.dg/reflect/type_trait14.C for -fimplicit-constexpr [PR124844]","version":1,"mbox":"http://patchwork.ozlabs.org/series/499495/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2222135/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2222135/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=buw7ZMbI;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.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=buw7ZMbI","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.129.124"],"Received":["from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 4fsn2q6MZJz1yGS\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 05:30:41 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 21CB44BA23C7\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 19:30:39 +0000 (GMT)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 9FB984BA2E0F\n for <gcc-patches@gcc.gnu.org>; Fri, 10 Apr 2026 19:30:10 +0000 (GMT)","from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-659-naMMlvkEOyS0YV5YNIyT6g-1; Fri,\n 10 Apr 2026 15:30:07 -0400","from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id C329719560B2\n for <gcc-patches@gcc.gnu.org>; Fri, 10 Apr 2026 19:30:06 +0000 (UTC)","from tucnak.zalov.cz (unknown [10.44.33.241])\n by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id 3DCCD19560AB; Fri, 10 Apr 2026 19:30:06 +0000 (UTC)","from tucnak.zalov.cz (localhost [127.0.0.1])\n by tucnak.zalov.cz (8.18.1/8.18.1) with ESMTPS id 63AJU3tk4049372\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Fri, 10 Apr 2026 21:30:03 +0200","(from jakub@localhost)\n by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 63AJU3fi4049371;\n Fri, 10 Apr 2026 21:30:03 +0200"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 21CB44BA23C7","OpenDKIM Filter v2.11.0 sourceware.org 9FB984BA2E0F"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 9FB984BA2E0F","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 9FB984BA2E0F","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775849410; cv=none;\n b=vQlh1/OXrKAAL6MA398FSwmK3HCD1gOSp6HpN8uTuZvU/esZVMguwyqw1dKmwK16OdIPTDSV+hivky3AaB1lJYtSGNL6HB1W6e6sv3PI5/hQkinHS+fZBbKM3lGZiD6a6KHjDMjtxV4u7KvVa23fj+nARDHnHeTq6m5DBIzGm9g=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775849410; c=relaxed/simple;\n bh=3hOCMobWRiYPGX+G3TDOLje1RC/Ntu+UeJsW8RajOSo=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=Y0gzBL7pQpETjR11C9FUhDy8OhBIvYfUjomWv3Gzxl4/DbxPtYCCGpRp5J2332jSwCKBRjEk3OkVlIyX+XWgEBDwwrC4Z5pmWb65s/jhJT23ouDG8eYgwCP0wDDWUmGNV1Jx3ZZQ0jOa0i6E5E0CvUoz5JmTdcwsAUKCv3nvnBw=","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=1775849410;\n h=from:from:reply-to:reply-to:subject:subject:date:date:\n message-id:message-id:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=ZKyDdGvB4tRlkDJGeKESoVffvHznJ3IceWqud95iwsI=;\n b=buw7ZMbIjKhVleQKJNVAf3DHpwI8ff070DaKEROidtjIOw1siDCLcXtglkovLXcKBgaSlB\n xFSiTo4b1zKNYyGqst7hm/Sb6gBjyY+rr8xAbmnoyyFJ6vTgDB9GWB4WtBT6N5YSPelOVy\n QD3iv/N7MlmqHILUE0c6MuAJU9fJTFg=","X-MC-Unique":"naMMlvkEOyS0YV5YNIyT6g-1","X-Mimecast-MFC-AGG-ID":"naMMlvkEOyS0YV5YNIyT6g_1775849407","Date":"Fri, 10 Apr 2026 21:30:02 +0200","From":"Jakub Jelinek <jakub@redhat.com>","To":"Jason Merrill <jason@redhat.com>","Cc":"gcc-patches@gcc.gnu.org","Subject":"[PATCH] testsuite: Fix up g++.dg/reflect/type_trait14.C for\n -fimplicit-constexpr [PR124844]","Message-ID":"<adlPurgOZWuBTqIS@tucnak>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.0 on 10.30.177.12","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"NlSLlEMvmPfNTh7jfuWCrjZ6pMwLp14tQN5n043dK-Y_1775849407","X-Mimecast-Originator":"redhat.com","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","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>","Reply-To":"Jakub Jelinek <jakub@redhat.com>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"},"content":"Hi!\n\nThe g++.dg/reflect/type_trait14.C test FAILs with -fimplicit-constexpr,\nbecause in that case NLType is actually a literal type rather than\nnon-literal type and so is structural type too.\n\nFixed by making sure it is not a literal type even with\n-fimplicit-constexpr.\n\nTested on x86_64-linux, ok for trunk?\n\n2026-04-10  Jakub Jelinek  <jakub@redhat.com>\n\n\tPR c++/124844\n\t* g++.dg/reflect/type_trait14.C (NLType::~NLType): Move definition out\n\tof the class.\n\n\n\tJakub","diff":"--- gcc/testsuite/g++.dg/reflect/type_trait14.C.jj\t2026-04-03 20:51:17.890904505 +0200\n+++ gcc/testsuite/g++.dg/reflect/type_trait14.C\t2026-04-10 21:24:00.257567885 +0200\n@@ -25,8 +25,9 @@ struct NLType {\n   NLType () : _M_i(0) { }\n   constexpr NLType (int __i) : _M_i(__i) { }\n   NLType (const NLType &__other) : _M_i(__other._M_i) { }\n-  ~NLType () { _M_i = 0; }\n+  ~NLType ();\n };\n+NLType::~NLType () { _M_i = 0; }\n \n static_assert (is_structural_type (^^int));\n static_assert (is_structural_type (^^float));\n","prefixes":[]}