public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/91442] Wrong "may be used uninitialized" warning with allocation on assignment
       [not found] <bug-91442-4@http.gcc.gnu.org/bugzilla/>
@ 2020-12-03 12:09 ` paul.luckner@rwth-aachen.de
  2021-09-03 12:58 ` tschwinge at gcc dot gnu.org
  2021-09-03 12:59 ` tschwinge at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: paul.luckner@rwth-aachen.de @ 2020-12-03 12:09 UTC (permalink / raw)
  To: gcc-bugs

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

paul.luckner@rwth-aachen.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paul.luckner@rwth-aachen.de

--- Comment #2 from paul.luckner@rwth-aachen.de ---
Same is true for any other intrinsic data type. 

Test case for integer array:

program test
  implicit none
  integer, allocatable :: i(:)
  i = [1]
end program

Compilation and warning:
$ gfortran -Wall -g3 -fcheck=all -fuse-ld=bfd a.f90

    4 |   i = [1]
      | 
Warning: ‘i.offset’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
a.f90:4:0: Warning: ‘i.dim[0].lbound’ may be used uninitialized in this
function [-Wmaybe-uninitialized]

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

* [Bug fortran/91442] Wrong "may be used uninitialized" warning with allocation on assignment
       [not found] <bug-91442-4@http.gcc.gnu.org/bugzilla/>
  2020-12-03 12:09 ` [Bug fortran/91442] Wrong "may be used uninitialized" warning with allocation on assignment paul.luckner@rwth-aachen.de
@ 2021-09-03 12:58 ` tschwinge at gcc dot gnu.org
  2021-09-03 12:59 ` tschwinge at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2021-09-03 12:58 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tschwinge at gcc dot gnu.org

--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
(In reply to Ignacio Fernández Galván from comment #0)
> character(len=:), allocatable :: string
> string='Hello world!'

Is that PR56670?

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

* [Bug fortran/91442] Wrong "may be used uninitialized" warning with allocation on assignment
       [not found] <bug-91442-4@http.gcc.gnu.org/bugzilla/>
  2020-12-03 12:09 ` [Bug fortran/91442] Wrong "may be used uninitialized" warning with allocation on assignment paul.luckner@rwth-aachen.de
  2021-09-03 12:58 ` tschwinge at gcc dot gnu.org
@ 2021-09-03 12:59 ` tschwinge at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2021-09-03 12:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
(In reply to paul.luckner from comment #2)
>   integer, allocatable :: i(:)
>   i = [1]

Is that PR77504?

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

end of thread, other threads:[~2021-09-03 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-91442-4@http.gcc.gnu.org/bugzilla/>
2020-12-03 12:09 ` [Bug fortran/91442] Wrong "may be used uninitialized" warning with allocation on assignment paul.luckner@rwth-aachen.de
2021-09-03 12:58 ` tschwinge at gcc dot gnu.org
2021-09-03 12:59 ` tschwinge 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).