public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41615]  New: Bogus error message: "internal function" should be "module procedure"
@ 2009-10-07  8:12 burnus at gcc dot gnu dot org
  2009-10-07 10:33 ` [Bug fortran/41615] " domob at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-07  8:12 UTC (permalink / raw)
  To: gcc-bugs

The following is properly rejected but the error message is bogus:

Error: Character-valued internal function 'assumed_len' at (1) must not be
assumed length

I tried to find an internal function, but all I see is a module procedure. (For
internal functions, assumed-length result values are also invalid.)

module funcs
   implicit none
contains
      function assumed_len(x)
         character(*) assumed_len
         integer, intent(in) :: x
      end function assumed_len
end module


-- 
           Summary: Bogus error message: "internal function" should be
                    "module procedure"
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

* [Bug fortran/41615] Bogus error message: "internal function" should be "module procedure"
  2009-10-07  8:12 [Bug fortran/41615] New: Bogus error message: "internal function" should be "module procedure" burnus at gcc dot gnu dot org
@ 2009-10-07 10:33 ` domob at gcc dot gnu dot org
  2009-10-07 18:13 ` domob at gcc dot gnu dot org
  2009-10-07 18:15 ` domob at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-10-07 10:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from domob at gcc dot gnu dot org  2009-10-07 10:32 -------
Confirmed, I'll investigate what we can do here (and look at similar cases).


-- 

domob at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |domob at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-10-07 10:32:55
               date|                            |


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


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

* [Bug fortran/41615] Bogus error message: "internal function" should be "module procedure"
  2009-10-07  8:12 [Bug fortran/41615] New: Bogus error message: "internal function" should be "module procedure" burnus at gcc dot gnu dot org
  2009-10-07 10:33 ` [Bug fortran/41615] " domob at gcc dot gnu dot org
@ 2009-10-07 18:13 ` domob at gcc dot gnu dot org
  2009-10-07 18:15 ` domob at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-10-07 18:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from domob at gcc dot gnu dot org  2009-10-07 18:13 -------
Subject: Bug 41615

Author: domob
Date: Wed Oct  7 18:13:28 2009
New Revision: 152534

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152534
Log:
2009-10-07  Daniel Kraft  <d@domob.eu>

        PR fortran/41615
        * resolve.c (resolve_contained_fntype): Clarify error message for
        invalid assumed-length character result on module procedures.

2009-10-07  Daniel Kraft  <d@domob.eu>

        PR fortran/41615
        * gfortran.dg/assumed_charlen_function_6.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/assumed_charlen_function_6.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/41615] Bogus error message: "internal function" should be "module procedure"
  2009-10-07  8:12 [Bug fortran/41615] New: Bogus error message: "internal function" should be "module procedure" burnus at gcc dot gnu dot org
  2009-10-07 10:33 ` [Bug fortran/41615] " domob at gcc dot gnu dot org
  2009-10-07 18:13 ` domob at gcc dot gnu dot org
@ 2009-10-07 18:15 ` domob at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-10-07 18:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from domob at gcc dot gnu dot org  2009-10-07 18:15 -------
Fixed on trunk, now the message really prints "module procedure" for module
procedures.


-- 

domob at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-10-07 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-07  8:12 [Bug fortran/41615] New: Bogus error message: "internal function" should be "module procedure" burnus at gcc dot gnu dot org
2009-10-07 10:33 ` [Bug fortran/41615] " domob at gcc dot gnu dot org
2009-10-07 18:13 ` domob at gcc dot gnu dot org
2009-10-07 18:15 ` domob 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).