From owner-freebsd-toolchain@freebsd.org Mon Mar 23 21:34:56 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E0BD5270A54 for ; Mon, 23 Mar 2020 21:34:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48mSMh5kRPz3DLW for ; Mon, 23 Mar 2020 21:34:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C0BAD270A53; Mon, 23 Mar 2020 21:34:56 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C0717270A52 for ; Mon, 23 Mar 2020 21:34:56 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48mSMh4Hlfz3DLR for ; Mon, 23 Mar 2020 21:34:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8C0BC1CD90 for ; Mon, 23 Mar 2020 21:34:56 +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 02NLYuKx066069 for ; Mon, 23 Mar 2020 21:34:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02NLYuML066068 for toolchain@FreeBSD.org; Mon, 23 Mar 2020 21:34:56 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: toolchain@FreeBSD.org Subject: [Bug 245006] toolchain: clang issues bogus "warning: multi-line // comment [-Wcomment]" under -pedantic Date: Mon, 23 Mar 2020 21:34:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mandree@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 21:34:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245006 Matthias Andree changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.llvm.org/show_ | |bug.cgi?id=3D45285 Summary|toolchain: clang issues |toolchain: clang issues |bogus "warning: multi-line |bogus "warning: multi-line |// comment [-Wcomment]" |// comment [-Wcomment]" | |under -pedantic --- Comment #4 from Matthias Andree --- After some digging, I figured that -pedantic -std=3Dc11 makes the differenc= e.=20 All GCC version I've tried (9.2.0, 10.0 snapshot) accept the code without diagnostics.=20 -pedantic interpretation differs. clang flags extensions, and gcc enables a= ll diagnostics required by the standard. gcc -O -std=3Dc11 -pedantic-errors -c /tmp/try.c=20 gcc10 -O -std=3Dc11 -pedantic-errors -c /tmp/try.c=20 (no output) clang -O -std=3Dc11 -pedantic-errors -c /tmp/try.c=20 /tmp/try.c:1:4: error: multi-line // comment [-Werror,-Wcomment] same for base clang and all clang versions from ports: llvm-devel-11.0.d20200117 LLVM and Clang llvm10-10.0.0.r4 LLVM and Clang llvm80-8.0.1_3 LLVM and Clang llvm90-9.0.1 LLVM and Clang I've filed this with LLVM, link in See Also. Let's see what we get. --=20 You are receiving this mail because: You are on the CC list for the bug.=