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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |6.0
            Summary|Multi-location diagnostics  |[6 Regression]
                   |writes too many lines       |Multi-location diagnostics
                   |                            |writes too many lines

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
No patch is needed to expose this bug.

Test case:
ig25@linux-fd1f:/tmp> cat label.f90 
program main
  goto 1000
1000 continue
  a = a
  a = a
  a = a
1000 continue
end
ig25@linux-fd1f:/tmp> gfortran label.f90 
label.f90:3:4:

 1000 continue
    1
   a = a

   a = a

   a = a

 1000 continue
    2
Error: Duplicate statement label 1000 at (1) and (2)
ig25@linux-fd1f:/tmp> /usr/bin/gfortran label.f90 
label.f90:3.4:

1000 continue
    1
label.f90:7.4:

1000 continue
    2
Error: Duplicate statement label 1000 at (1) and (2)

Reply via email to