From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67946385E44A; Wed, 14 Jul 2021 09:47:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67946385E44A From: "ismail at i10z dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101446] -Wpedantic causes an error with zero size array Date: Wed, 14 Jul 2021 09:47:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ismail at i10z dot com X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2021 09:47:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101446 --- Comment #6 from =C4=B0smail D=C3=B6nmez --- (In reply to Richard Biener from comment #4) > -Wpedantic was added as fix for PR44774 to make -Werror=3Dpedantic work > (as opposed to -Werror=3Dedantic) The problem is that it's inconsistent, here is a list of other -Wpedantic warnings that do not result in an error: ISO C does not support the '_Float128' type [-Wpedantic] ISO C does not support the '_Float32' type [-Wpedantic] ISO C does not support the '_Float32x' type [-Wpedantic] ISO C does not support the '_Float64' type [-Wpedantic] ISO C does not support the '_Float64x' type [-Wpedantic] ISO C does not support the =E2=80=98_Float128=E2=80=99 type [-Wpedantic] ISO C does not support the =E2=80=98_Float32x=E2=80=99 type [-Wpedantic] ISO C does not support the =E2=80=98_Float32=E2=80=99 type [-Wpedantic] ISO C does not support the =E2=80=98_Float64x=E2=80=99 type [-Wpedantic] ISO C does not support the =E2=80=98_Float64=E2=80=99 type [-Wpedantic] ISO C forbids 'goto *expr;' [-Wpedantic] ISO C forbids 'return' with expression, in function returning void [-Wpedan= tic] ISO C forbids an empty translation unit [-Wpedantic] ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] ISO C forbids braced-groups within expressions [-Wpedantic] ISO C forbids conditional expr with only one void side [-Wpedantic] ISO C forbids conversion of function pointer to object pointer type [-Wpedantic] ISO C forbids conversion of object pointer to function pointer type [-Wpedantic] ISO C forbids empty initializer braces [-Wpedantic] ISO C forbids forward references to 'enum' types [-Wpedantic] ISO C forbids initialization between function pointer and 'void *' [-Wpedan= tic] ISO C forbids label declarations [-Wpedantic] ISO C forbids omitting the middle term of a '?:' expression [-Wpedantic] ISO C forbids passing argument 1 of '_dl_addr' between function pointer and 'void *' [-Wpedantic] ISO C forbids return between function pointer and 'void *' [-Wpedantic] ISO C forbids specifying range of elements to initialize [-Wpedantic]=