From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0454F3858D32; Wed, 12 Apr 2023 08:27:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0454F3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681288048; bh=vO6kPQkCes2OwVNIc8FQY2Jtq2lu8rkuSedaxnMdgao=; h=From:To:Subject:Date:From; b=uyoLPTMdn4mrKxWAroCidps9VNekCBAwI0rcyY+EAIHKpyWTVn04sscuxgbDRGYjg pjkUN+R0yPShI2wPIUieetbbxtnhPnYOJwMZZtNoIyQ6WynbrDUWCy4cgZdJvmymE7 6zr/R0NvbYorZVmS5+yAVTnPfVLCJoZOai6fpqpU= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109482] New: experimental/net/internet/endpoint/cons.cc FAILs Date: Wed, 12 Apr 2023 08:27:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109482 Bug ID: 109482 Summary: experimental/net/internet/endpoint/cons.cc FAILs Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org Target Milestone: --- Host: *-*-solaris2.11 Target: *-*-solaris2.11 Build: *-*-solaris2.11 Created attachment 54839 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54839&action=3Dedit 32-bit i386-pc-solaris2.11 cons-cons.ii Between 20230329 (b2f327b9be81326c9e59fc6da98074c909ac7408) and 20230330 (a23b33a1bdeff7bc2289d9ebb7cb7b7ec0a605f5), the experimental/net/internet/endpoint/cons.cc test began to FAIL on Solaris (11.3 and 11.4, SPARC and x86): +FAIL: experimental/net/internet/endpoint/cons.cc (test for excess errors) +UNRESOLVED: experimental/net/internet/endpoint/cons.cc compilation failed = to produce executable The log shows Excess errors: /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/experimental/net/intern= et/endpoint/cons.cc:78: error: non-constant condition for static assertion /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/experimental/net/intern= et/endpoint/cons.cc:78: error: accessing 'in_addr::::S_addr' member instead of initialized 'in_addr::::S_un_b' member in constant expression The full message is /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/experimental/net/intern= et/endpoint/cons.cc: In function 'int main()': /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/experimental/net/intern= et/endpoint/cons.cc:78: error: non-constant condition for static assertion /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/experimental/net/intern= et/endpoint/cons.cc:78: in 'constexpr' expansion of 'test_constexpr()' /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/experimental/net/intern= et/endpoint/cons.cc:63: in 'constexpr' expansion of 'test_default()' /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/experimental/net/intern= et/endpoint/cons.cc:15: in 'constexpr' expansion of 'std::experimental::net::v1::ip::basic_endpoint<_InternetProtocol>::address= () const [with _InternetProtocol =3D std::experimental::net::v1::ip::tcp]()' /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/experimental/net/intern= et/endpoint/cons.cc:78: error: accessing 'in_addr::::S_addr' member instead of initialized 'in_addr::::S_un_b' member in constant expression This is no doubt due to commit e0d77144aaa56ee6e00fd0ba520b0a5c7e052423 Author: Jonathan Wakely Date: Wed Mar 22 17:00:11 2023 +0000 libstdc++: Fix constexpr functions in but I don't know what's going on. I'm attaching the preprocessed testcase.=