public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/27318] gfortran should warn if a interface does not match
       [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-28 18:24 ` dfranke at gcc dot gnu.org
  2010-12-28 18:26 ` dfranke at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu.org @ 2010-12-28 18:24 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Franke <dfranke at gcc dot gnu.org> changed:

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

--- Comment #2 from Daniel Franke <dfranke at gcc dot gnu.org> 2010-12-28 18:23:33 UTC ---
*** Bug 45654 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/27318] gfortran should warn if a interface does not match
       [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
  2010-12-28 18:24 ` [Bug fortran/27318] gfortran should warn if a interface does not match dfranke at gcc dot gnu.org
@ 2010-12-28 18:26 ` dfranke at gcc dot gnu.org
  2020-06-13 17:17 ` tkoenig at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dfranke at gcc dot gnu.org @ 2010-12-28 18:26 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Franke <dfranke at gcc dot gnu.org> changed:

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

--- Comment #3 from Daniel Franke <dfranke at gcc dot gnu.org> 2010-12-28 18:26:20 UTC ---
*** Bug 45086 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/27318] gfortran should warn if a interface does not match
       [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
  2010-12-28 18:24 ` [Bug fortran/27318] gfortran should warn if a interface does not match dfranke at gcc dot gnu.org
  2010-12-28 18:26 ` dfranke at gcc dot gnu.org
@ 2020-06-13 17:17 ` tkoenig at gcc dot gnu.org
  2020-06-14 10:17 ` tkoenig at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-06-13 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
This is also not caught:

module test
implicit none
interface
   subroutine hello(n)
     integer :: n
   end subroutine hello
end interface
contains
  subroutine bar()
     call hello(3)
  end subroutine bar
end module test

subroutine hello(r)
  real :: r
  integer :: i
  do i = 1, int(r); print *, 'hello'; end do
end subroutine hello

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

* [Bug fortran/27318] gfortran should warn if a interface does not match
       [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2020-06-13 17:17 ` tkoenig at gcc dot gnu.org
@ 2020-06-14 10:17 ` tkoenig at gcc dot gnu.org
  2020-06-30 20:13 ` tkoenig at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-06-14 10:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
To celebrate this PR's 14th birthday (if a bit late), a patch was posted:

https://gcc.gnu.org/pipermail/gcc-patches/2020-June/548045.html

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

* [Bug fortran/27318] gfortran should warn if a interface does not match
       [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2020-06-14 10:17 ` tkoenig at gcc dot gnu.org
@ 2020-06-30 20:13 ` tkoenig at gcc dot gnu.org
  2020-07-05 18:15 ` cvs-commit at gcc dot gnu.org
  2020-07-05 18:16 ` tkoenig at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-06-30 20:13 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |tkoenig at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

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

* [Bug fortran/27318] gfortran should warn if a interface does not match
       [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2020-06-30 20:13 ` tkoenig at gcc dot gnu.org
@ 2020-07-05 18:15 ` cvs-commit at gcc dot gnu.org
  2020-07-05 18:16 ` tkoenig at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-07-05 18:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Kथà¤nig <tkoenig@gcc.gnu.org>:

https://gcc.gnu.org/g:cc9a9229285a26ac12bc8de53237ce9c4d42f867

commit r11-1814-gcc9a9229285a26ac12bc8de53237ce9c4d42f867
Author: Thomas Koenig <tkoenig@gcc.gnu.org>
Date:   Sun Jul 5 20:11:35 2020 +0200

    Test global identifiers against what is specified interfaces.

    Apart from calling gfc_compare_interfaces to check interfaces against
    global identifiers, this also sets and check a few sym->error flags
    to avoid duplicate error messages.  I thought about issuing errors
    on mismatched interfaces, but when the procedure is not invoked,
    a warning should be enough to alert the user.

    gcc/fortran/ChangeLog:

            PR fortran/27318
            * frontend-passes.c (check_against_globals): New function.
            (gfc_check_externals): Split; also invoke check_against_globals
            via gfc_traverse_ns.
            (gfc_check_externals0): Recursive part formerly in
            gfc_check_externals.
            * resolve.c (resolve_global_procedure): Set sym->error on
            interface mismatch.
            * symbol.c (ambiguous_symbol): Check for, and set sym->error.

    gcc/testsuite/ChangeLog:

            PR fortran/27318
            * gfortran.dg/error_recovery_1.f90: Adjust test case.
            * gfortran.dg/use_15.f90: Likewise.
            * gfortran.dg/interface_47.f90: New test.

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

* [Bug fortran/27318] gfortran should warn if a interface does not match
       [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2020-07-05 18:15 ` cvs-commit at gcc dot gnu.org
@ 2020-07-05 18:16 ` tkoenig at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-07-05 18:16 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Fixed, closing.

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

* [Bug fortran/27318] gfortran should warn if a interface does not match
  2006-04-25 18:13 [Bug fortran/27318] New: " tobias dot burnus at physik dot fu-berlin dot de
@ 2006-04-25 18:39 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-25 18:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-25 18:39 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-25 18:39:13
               date|                            |


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


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

end of thread, other threads:[~2020-07-05 18:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
2010-12-28 18:24 ` [Bug fortran/27318] gfortran should warn if a interface does not match dfranke at gcc dot gnu.org
2010-12-28 18:26 ` dfranke at gcc dot gnu.org
2020-06-13 17:17 ` tkoenig at gcc dot gnu.org
2020-06-14 10:17 ` tkoenig at gcc dot gnu.org
2020-06-30 20:13 ` tkoenig at gcc dot gnu.org
2020-07-05 18:15 ` cvs-commit at gcc dot gnu.org
2020-07-05 18:16 ` tkoenig at gcc dot gnu.org
2006-04-25 18:13 [Bug fortran/27318] New: " tobias dot burnus at physik dot fu-berlin dot de
2006-04-25 18:39 ` [Bug fortran/27318] " pinskia 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).