public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/94104] New: Request for diagnostic improvement
@ 2020-03-09 18:42 jrfsousa at gmail dot com
  2020-04-11 19:02 ` [Bug fortran/94104] " tkoenig at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jrfsousa at gmail dot com @ 2020-03-09 18:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94104
           Summary: Request for diagnostic improvement
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jrfsousa at gmail dot com
  Target Milestone: ---

Created attachment 47999
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47999&action=edit
Code demonstrating problems.

Hi all!

Minor nitpick, the attached program raises an error:

$ gfortran ./diag.f90
./diag.f90:10:16:

   10 |   print *, sumf(a)
      |                1
Error: Actual argument for ‘a’ must be a pointer at (1)

in both:

GNU Fortran (GCC) 9.2.1 20200307

and

GNU Fortran (GCC) 10.0.1 20200307 (experimental)

The diagnostic is a bit misleading as the variable can be pointer or target.

Thank you very much.

Best regards,
José Rui

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

* [Bug fortran/94104] Request for diagnostic improvement
  2020-03-09 18:42 [Bug fortran/94104] New: Request for diagnostic improvement jrfsousa at gmail dot com
@ 2020-04-11 19:02 ` tkoenig at gcc dot gnu.org
  2021-06-14 22:42 ` jrfsousa at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-04-11 19:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-04-11
             Status|UNCONFIRMED                 |NEW
                 CC|                            |tkoenig at gcc dot gnu.org
           Severity|normal                      |enhancement

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Would be useful, yes.

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

* [Bug fortran/94104] Request for diagnostic improvement
  2020-03-09 18:42 [Bug fortran/94104] New: Request for diagnostic improvement jrfsousa at gmail dot com
  2020-04-11 19:02 ` [Bug fortran/94104] " tkoenig at gcc dot gnu.org
@ 2021-06-14 22:42 ` jrfsousa at gcc dot gnu.org
  2021-06-14 22:43 ` jrfsousa at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jrfsousa at gcc dot gnu.org @ 2021-06-14 22:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from José Rui Faustino de Sousa <jrfsousa at gcc dot gnu.org> ---
Patch posted:

https://gcc.gnu.org/pipermail/fortran/2021-June/056162.html

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

* [Bug fortran/94104] Request for diagnostic improvement
  2020-03-09 18:42 [Bug fortran/94104] New: Request for diagnostic improvement jrfsousa at gmail dot com
  2020-04-11 19:02 ` [Bug fortran/94104] " tkoenig at gcc dot gnu.org
  2021-06-14 22:42 ` jrfsousa at gcc dot gnu.org
@ 2021-06-14 22:43 ` jrfsousa at gcc dot gnu.org
  2021-06-14 22:44 ` jrfsousa at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jrfsousa at gcc dot gnu.org @ 2021-06-14 22:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from José Rui Faustino de Sousa <jrfsousa at gcc dot gnu.org> ---
Created attachment 51013
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51013&action=edit
Error message improvement

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

* [Bug fortran/94104] Request for diagnostic improvement
  2020-03-09 18:42 [Bug fortran/94104] New: Request for diagnostic improvement jrfsousa at gmail dot com
                   ` (2 preceding siblings ...)
  2021-06-14 22:43 ` jrfsousa at gcc dot gnu.org
@ 2021-06-14 22:44 ` jrfsousa at gcc dot gnu.org
  2022-11-09 20:51 ` anlauf at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jrfsousa at gcc dot gnu.org @ 2021-06-14 22:44 UTC (permalink / raw)
  To: gcc-bugs

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

José Rui Faustino de Sousa <jrfsousa at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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

* [Bug fortran/94104] Request for diagnostic improvement
  2020-03-09 18:42 [Bug fortran/94104] New: Request for diagnostic improvement jrfsousa at gmail dot com
                   ` (3 preceding siblings ...)
  2021-06-14 22:44 ` jrfsousa at gcc dot gnu.org
@ 2022-11-09 20:51 ` anlauf at gcc dot gnu.org
  2022-11-13 20:21 ` cvs-commit at gcc dot gnu.org
  2022-11-13 20:22 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-11-09 20:51 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

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

--- Comment #4 from anlauf at gcc dot gnu.org ---
Pinged here: https://gcc.gnu.org/pipermail/fortran/2022-November/058471.html

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

* [Bug fortran/94104] Request for diagnostic improvement
  2020-03-09 18:42 [Bug fortran/94104] New: Request for diagnostic improvement jrfsousa at gmail dot com
                   ` (4 preceding siblings ...)
  2022-11-09 20:51 ` anlauf at gcc dot gnu.org
@ 2022-11-13 20:21 ` cvs-commit at gcc dot gnu.org
  2022-11-13 20:22 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-11-13 20:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:58e7732a2feddf475e72b232bf16494d84a41acf

commit r13-3946-g58e7732a2feddf475e72b232bf16494d84a41acf
Author: José Rui Faustino de Sousa <jrfsousa@gmail.com>
Date:   Wed Nov 9 21:30:25 2022 +0100

    Fortran: diagnostics for actual arguments to pointer dummy arguments
[PR94104]

    Error message improvement.  In Fortran 2008 actual procedure arguments
    associated with a pointer, intent(in) attribute, dummy argument
    can also have the target attribute, not just pointer.

    gcc/fortran/ChangeLog:

            PR fortran/94104
            * interface.cc (gfc_compare_actual_formal): Improve error message
            dependent on Fortran standard level.

    gcc/testsuite/ChangeLog:

            PR fortran/94104
            * gfortran.dg/parens_2.f90: Adjust to improved error message.
            * gfortran.dg/PR94104a.f90: New test.
            * gfortran.dg/PR94104b.f90: New test.

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

* [Bug fortran/94104] Request for diagnostic improvement
  2020-03-09 18:42 [Bug fortran/94104] New: Request for diagnostic improvement jrfsousa at gmail dot com
                   ` (5 preceding siblings ...)
  2022-11-13 20:21 ` cvs-commit at gcc dot gnu.org
@ 2022-11-13 20:22 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-11-13 20:22 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |13.0

--- Comment #6 from anlauf at gcc dot gnu.org ---
Fixed for gcc-13.  Closing.

Thanks for the patch!

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

end of thread, other threads:[~2022-11-13 20:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 18:42 [Bug fortran/94104] New: Request for diagnostic improvement jrfsousa at gmail dot com
2020-04-11 19:02 ` [Bug fortran/94104] " tkoenig at gcc dot gnu.org
2021-06-14 22:42 ` jrfsousa at gcc dot gnu.org
2021-06-14 22:43 ` jrfsousa at gcc dot gnu.org
2021-06-14 22:44 ` jrfsousa at gcc dot gnu.org
2022-11-09 20:51 ` anlauf at gcc dot gnu.org
2022-11-13 20:21 ` cvs-commit at gcc dot gnu.org
2022-11-13 20:22 ` anlauf 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).