public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/31279]  New: Uninitialized warning for call-by-reference arguments with known intent(in)
@ 2007-03-20 15:42 burnus at gcc dot gnu dot org
  2007-03-20 15:42 ` [Bug middle-end/31279] " burnus at gcc dot gnu dot org
  0 siblings, 1 reply; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-03-20 15:42 UTC (permalink / raw)
  To: gcc-bugs

In Fortran one can specify the intent of variables thus if all arguments have
INTENT(IN) then GCC should be able to detect that alist in the call to cshift
is uninitialized.

This depends on the middle end support of intents (PR31094) plus using these in
gfortran.

Example (using an intrinsic function):

program testcshft
  integer :: alist(4)
  alist =cshift(alist,-1)
  write(*,*) alist
end program testcshft


-- 
           Summary: Uninitialized warning for call-by-reference arguments
                    with known intent(in)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
 BugsThisDependsOn: 31094


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31279


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

end of thread, other threads:[~2022-08-29 13:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-31279-4@http.gcc.gnu.org/bugzilla/>
2012-02-02 17:49 ` [Bug middle-end/31279] Uninitialized warning for call-by-reference arguments with known intent(in) pinskia at gcc dot gnu.org
2013-06-25  9:10 ` dominiq at lps dot ens.fr
2013-08-28  8:25 ` rguenth at gcc dot gnu.org
2020-05-19 20:03 ` msebor at gcc dot gnu.org
2021-03-25 17:49 ` [Bug fortran/31279] " msebor at gcc dot gnu.org
2022-08-29 13:14 ` rguenth at gcc dot gnu.org
2007-03-20 15:42 [Bug middle-end/31279] New: " burnus at gcc dot gnu dot org
2007-03-20 15:42 ` [Bug middle-end/31279] " burnus at gcc dot gnu dot 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).