public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/91093] Error on implicit int by default
       [not found] <bug-91093-4@http.gcc.gnu.org/bugzilla/>
@ 2022-07-27 15:47 ` fw at gcc dot gnu.org
  2023-05-19 21:51 ` muecker at gwdg dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: fw at gcc dot gnu.org @ 2022-07-27 15:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91093

--- Comment #2 from Florian Weimer <fw at gcc dot gnu.org> ---
It seems that

auto x = 1.0;

will change meaning in C2X (as implemented by GCC) and use type double instead
of int for x. We are probably way too late to fix this (by rejecting the
construct in earlier language modes) before C2X support arrives in GCC.

This may require the same careful treatment as bug 91092 and bug 106416.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/91093] Error on implicit int by default
       [not found] <bug-91093-4@http.gcc.gnu.org/bugzilla/>
  2022-07-27 15:47 ` [Bug c/91093] Error on implicit int by default fw at gcc dot gnu.org
@ 2023-05-19 21:51 ` muecker at gwdg dot de
  2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: muecker at gwdg dot de @ 2023-05-19 21:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91093

Martin Uecker <muecker at gwdg dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |muecker at gwdg dot de

--- Comment #3 from Martin Uecker <muecker at gwdg dot de> ---
*** Bug 106425 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/91093] Error on implicit int by default
       [not found] <bug-91093-4@http.gcc.gnu.org/bugzilla/>
  2022-07-27 15:47 ` [Bug c/91093] Error on implicit int by default fw at gcc dot gnu.org
  2023-05-19 21:51 ` muecker at gwdg dot de
@ 2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org
  2023-12-01  7:15 ` fw at gcc dot gnu.org
  2023-12-01  8:20 ` sjames at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-01  7:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91093

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@gcc.gnu.org>:

https://gcc.gnu.org/g:4ee2aca7ca098cc6e622a9a41e63224af37e6532

commit r14-6034-g4ee2aca7ca098cc6e622a9a41e63224af37e6532
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Dec 1 08:10:13 2023 +0100

    c: Turn -Wimplicit-int into a permerror

    Most of these new permerrors are currently not diagnosed in system
    headers.

    gcc/

            PR c/91093
            PR c/96284
            * doc/invoke.texi (Warning Options): Document changes.

    gcc/c/

            * c-decl.cc (warn_defaults_to): Remove.
            (grok_declarator, start_function): Call permerror_opt
            instead of warn_defaults_to.
            (store_parm_decls_oldstyle): Call permerror_opt for
            OPT_Wimplicit_int.

    gcc/testsuite/

            * gcc.dg/permerror-default.c (implicit_int_1, implicit_int_2)
            (implicit_int_3, implicit_int_4): Expect new permerror.
            * gcc.dg/permerror-system.c: Expect a single new permerror.
            * gcc.dg/Wimplicit-int-1.c: Compile with -fpermissive due to
            expected warning.
            * gcc.dg/Wimplicit-int-4.c: Likewise.
            * gcc.dg/Wimplicit-int-1a.c: New test.  Copied from
            gcc.dg/Wimplicit-int-1.c, but expect errors.
            * gcc.dg/Wimplicit-int-4a.c: New test.  Copied from
            gcc.dg/Wimplicit-int-4.c, but expect errors.
            * gcc.dg/gnu23-attr-syntax-2.c: Compile with -fpermissive
            due to expected implicit-int error.
            * gcc.dg/gnu23-attr-syntax-3.c: New test.  Copied from
            gcc.dg/gnu23-attr-syntax-2.c, but expect an error.
            * gcc.dg/pr105635.c: Build with -fpermissive due to implicit
            int.
            * gcc.dg/pr105635-2.c: New test.  Copied from
            gcc.dg/pr105635.c.  Expect implicit int error.
            * gcc.dg/noncompile/pr79758.c: Build with -fpermissive due to
            implicit int.
            * gcc.dg/noncompile/pr79758-2.c: New test.  Copied from
            gcc.dg/noncompile/pr79758.c.  Expect implicit int error.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/91093] Error on implicit int by default
       [not found] <bug-91093-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org
@ 2023-12-01  7:15 ` fw at gcc dot gnu.org
  2023-12-01  8:20 ` sjames at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: fw at gcc dot gnu.org @ 2023-12-01  7:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91093

Florian Weimer <fw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #5 from Florian Weimer <fw at gcc dot gnu.org> ---
Fixed for GCC 14.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/91093] Error on implicit int by default
       [not found] <bug-91093-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2023-12-01  7:15 ` fw at gcc dot gnu.org
@ 2023-12-01  8:20 ` sjames at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-12-01  8:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91093

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-01  8:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-91093-4@http.gcc.gnu.org/bugzilla/>
2022-07-27 15:47 ` [Bug c/91093] Error on implicit int by default fw at gcc dot gnu.org
2023-05-19 21:51 ` muecker at gwdg dot de
2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org
2023-12-01  7:15 ` fw at gcc dot gnu.org
2023-12-01  8:20 ` sjames at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).