From nobody Tue Jul 09 18:38:55 2024 X-Original-To: bugs@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 4WJVBT6bJFz5QsC6 for ; Tue, 09 Jul 2024 18:38:57 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WJVBR6nY7z4jRG for ; Tue, 9 Jul 2024 18:38:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720550336; a=rsa-sha256; cv=none; b=COaC8GBKzWL8hb40i6a6r7qlUgv1d7xySRlVxMU6BJ6StFHYNzkdOBPFa3jgmEOGskZHZX ojdK+OGnow/92Dsos6jQlCBAeOLEpKggmTdF2k2QFSXhUwuEn41OlDHgVmzHj9UoTb4QIH vv4Q30ZwkT8MgtPT9nkfrkNy9w/KLDyAUV682Eb1qB3elHGiWDEKZyS2/MFw9zumaIWpuq 1PgXE38PoijMX0IdfTT3HXBr3cKo9LD4k4XACNa3RzrwRusDXYn+8TALfVBpJMym0x8FFT W5gygsKFVAlYyJb6FxpTSOkzVlKEs1yldKosEpTsn3rByeP8fCU1vKY0Bbffqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720550336; 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; bh=dsObojdqjOSpPmGjUUJjBiWjJNIv448epnV32gUZ8DA=; b=gRHZj+Bmws687/VnbhPUZ9wBd5XKZ8tECKPLfBs7SifNFlP352srN3gLh6MOXJTuNuFsbv t9BEiP84R7aF9sNZCCyB63AS1luKK7uH8+/UjRizh5lvjqni+fGSw3HYUmq8qXTitrPoR8 WfHbwvTUegumYxblEwR+4T3wxWqE23FtaEs3IGKi+M5gb4XXJpTOjIFCVRnBfdRoHU7RP8 a4AFbMFKd+HJNxnUJBOpRZc6yTM9jJPJRIJsjp0HpmbKNBx1Ib31RwUoZuNY6kJQHM5SuQ xyuPnJlE2zRQpeSv4GTYr4UK1wa9nNFN9ZjXncrD6hdKdCzyG18+HX47d0b7yA== 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 4WJVBR5wr0zm0S for ; Tue, 9 Jul 2024 18:38:55 +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 469IctZM060441 for ; Tue, 9 Jul 2024 18:38:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 469IctbS060438 for bugs@FreeBSD.org; Tue, 9 Jul 2024 18:38:55 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: bugs@FreeBSD.org Subject: [Bug 280210] '#include ' fails when -std=c99 and -pedantic-errors options are specified (found on the multimedia/librist port) Date: Tue, 09 Jul 2024 18:38:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280210 Bug ID: 280210 Summary: '#include ' fails when -std=3Dc99 and -pedantic-errors options are specified (found on the multimedia/librist port) Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org Created attachment 251956 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251956&action= =3Dedit test.shar When the C file with a single include is compiled with 'cc -std=3Dc99 -pedantic-errors test.c' - it fails: $ sh run.sh In file included from test.c:1: /usr/include/stdatomic.h:385:10: error: member reference base type '_Bool' = is not a structure or union 385 | return (atomic_exchange_explicit(&__object->__flag, 1, __order)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ /usr/include/stdatomic.h:303:39: note: expanded from macro 'atomic_exchange_explicit' 303 | ((void)(order), __sync_swap(&(object)->__val, desired)) | ~~~~~~~~^ ~~~~~ /usr/include/stdatomic.h:392:2: error: member reference base type '_Bool' is not a structure or union 392 | atomic_store_explicit(&__object->__flag, 0, __order); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdatomic.h:334:9: note: expanded from macro 'atomic_store_explicit' 334 | ((void)atomic_exchange_explicit(object, desired, order)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdatomic.h:303:39: note: expanded from macro 'atomic_exchange_explicit' 303 | ((void)(order), __sync_swap(&(object)->__val, desired)) | ~~~~~~~~^ ~~~~~ 2 errors generated. --=20 You are receiving this mail because: You are the assignee for the bug.=