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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
   Target Milestone|---                         |13.4
            Summary|Pb Doubled linked List      |segmentation fault on
                   |                            |uninitialized variable
             Status|WAITING                     |RESOLVED
           Keywords|memory-hog                  |

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Thanks.  I can reproduce the problem with GCC 13.3 but it will be fixed in the
GCC 13.4 release that should be out tomorrow.  Here's what GCC 13.4 will give:

fichier.adb:529:31: warning: "Debut" may be referenced before it has a value
[enabled by default]
fichier.adb:552:36: warning: "return" statement missing following this
statement [enabled by default]
fichier.adb:552:36: warning: Program_Error will be raised at run time [enabled
by default]

The workaround with GCC 13.3 is to initialize the Debut variable.

*** This bug has been marked as a duplicate of bug 118712 ***

Reply via email to