public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25093]  New: better diagnostic needed
@ 2005-11-26 18:05 jv244 at cam dot ac dot uk
  2005-11-30 12:37 ` [Bug fortran/25093] PUBLIC function of PRIVATE type eedelman at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-11-26 18:05 UTC (permalink / raw)
  To: gcc-bugs

using GNU Fortran 95 (GCC) 4.1.0 20051126 (prerelease)  with '-g -pedantic
-std=f95', I get a bad / no diagnostic for the following invalid code:

MODULE M1
 TYPE T1
  INTEGER :: I
 END TYPE T1
 PRIVATE :: T1
 PUBLIC  :: F1
CONTAINS
 TYPE(T1) FUNCTION F1()
 END FUNCTION
END MODULE

 USE M1
 END


-- 
           Summary: better diagnostic needed
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug fortran/25093] PUBLIC function of PRIVATE type
  2005-11-26 18:05 [Bug fortran/25093] New: better diagnostic needed jv244 at cam dot ac dot uk
@ 2005-11-30 12:37 ` eedelman at gcc dot gnu dot org
  2006-01-08  0:14 ` eedelman at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-11-30 12:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from eedelman at gcc dot gnu dot org  2005-11-30 12:36 -------
Confirmed.


-- 

eedelman at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-30 12:36:58
               date|                            |
            Summary|better diagnostic needed    |PUBLIC function of PRIVATE
                   |                            |type


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


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

* [Bug fortran/25093] PUBLIC function of PRIVATE type
  2005-11-26 18:05 [Bug fortran/25093] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-30 12:37 ` [Bug fortran/25093] PUBLIC function of PRIVATE type eedelman at gcc dot gnu dot org
@ 2006-01-08  0:14 ` eedelman at gcc dot gnu dot org
  2006-01-08 17:53 ` eedelman at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-08  0:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from eedelman at gcc dot gnu dot org  2006-01-08 00:14 -------
Working on a patch.


-- 

eedelman at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eedelman at gcc dot gnu dot
                   |                            |org
           Keywords|diagnostic                  |accepts-invalid


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



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

* [Bug fortran/25093] PUBLIC function of PRIVATE type
  2005-11-26 18:05 [Bug fortran/25093] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-30 12:37 ` [Bug fortran/25093] PUBLIC function of PRIVATE type eedelman at gcc dot gnu dot org
  2006-01-08  0:14 ` eedelman at gcc dot gnu dot org
@ 2006-01-08 17:53 ` eedelman at gcc dot gnu dot org
  2006-01-09 16:19 ` eedelman at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-08 17:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from eedelman at gcc dot gnu dot org  2006-01-08 17:53 -------
Subject: Bug 25093

Author: eedelman
Date: Sun Jan  8 17:52:57 2006
New Revision: 109474

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109474
Log:
fortran/
2005-01-08  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25093
        * resolve.c (resolve_fntype): Check that PUBLIC functions
         aren't of PRIVATE type.

testsuite/
2005-01-08  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25093
        * gfortran.dg/private_type_4.f90: New.


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


-- 


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



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

* [Bug fortran/25093] PUBLIC function of PRIVATE type
  2005-11-26 18:05 [Bug fortran/25093] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2006-01-08 17:53 ` eedelman at gcc dot gnu dot org
@ 2006-01-09 16:19 ` eedelman at gcc dot gnu dot org
  2006-01-09 16:21 ` eedelman at gcc dot gnu dot org
  2006-01-28 21:15 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-09 16:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from eedelman at gcc dot gnu dot org  2006-01-09 16:19 -------
Subject: Bug 25093

Author: eedelman
Date: Mon Jan  9 16:19:22 2006
New Revision: 109500

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109500
Log:
fortran/
2005-01-09  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25093
        * resolve.c (resolve_fntype): Check that PUBLIC functions
        aren't of PRIVATE type.

testsuite/
2005-01-09  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25093
        * gfortran.dg/private_type_4.f90: New.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/private_type_4.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/resolve.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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



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

* [Bug fortran/25093] PUBLIC function of PRIVATE type
  2005-11-26 18:05 [Bug fortran/25093] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2006-01-09 16:19 ` eedelman at gcc dot gnu dot org
@ 2006-01-09 16:21 ` eedelman at gcc dot gnu dot org
  2006-01-28 21:15 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-09 16:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from eedelman at gcc dot gnu dot org  2006-01-09 16:21 -------
Fixed on 4.1 and mainline.


-- 

eedelman at gcc dot gnu dot org changed:

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


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



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

* [Bug fortran/25093] PUBLIC function of PRIVATE type
  2005-11-26 18:05 [Bug fortran/25093] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2006-01-09 16:21 ` eedelman at gcc dot gnu dot org
@ 2006-01-28 21:15 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-28 21:15 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2006-01-28 21:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26 18:05 [Bug fortran/25093] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-30 12:37 ` [Bug fortran/25093] PUBLIC function of PRIVATE type eedelman at gcc dot gnu dot org
2006-01-08  0:14 ` eedelman at gcc dot gnu dot org
2006-01-08 17:53 ` eedelman at gcc dot gnu dot org
2006-01-09 16:19 ` eedelman at gcc dot gnu dot org
2006-01-09 16:21 ` eedelman at gcc dot gnu dot org
2006-01-28 21:15 ` 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).