public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25091]  New: better diagnostic needed
@ 2005-11-26 18:05 jv244 at cam dot ac dot uk
  2006-01-20 21:51 ` [Bug fortran/25091] Results do not conform at different entries pinskia 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:

 FUNCTION F1() RESULT(RES_F1)
 INTEGER RES_F1(2,2)
 INTEGER RES_E1(4)
 ENTRY E1() RESULT(RES_E1)
 END FUNCTION
 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=25091


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

* [Bug fortran/25091] Results do not conform at different entries
  2005-11-26 18:05 [Bug fortran/25091] New: better diagnostic needed jv244 at cam dot ac dot uk
@ 2006-01-20 21:51 ` pinskia at gcc dot gnu dot org
  2006-09-05 14:15 ` patchapp at dberlin dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-20 21:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-20 21:51 -------
Confirmed, this is obviously wrong as there is no way for different entries to
have different return types.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-20 21:51:14
               date|                            |


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


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

* [Bug fortran/25091] Results do not conform at different entries
  2005-11-26 18:05 [Bug fortran/25091] New: better diagnostic needed jv244 at cam dot ac dot uk
  2006-01-20 21:51 ` [Bug fortran/25091] Results do not conform at different entries pinskia at gcc dot gnu dot org
@ 2006-09-05 14:15 ` patchapp at dberlin dot org
  2006-09-05 19:43 ` pault at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: patchapp at dberlin dot org @ 2006-09-05 14:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2006-09-05 14:15 -------
Subject: Bug number PR25091

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00145.html


-- 


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


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

* [Bug fortran/25091] Results do not conform at different entries
  2005-11-26 18:05 [Bug fortran/25091] New: better diagnostic needed jv244 at cam dot ac dot uk
  2006-01-20 21:51 ` [Bug fortran/25091] Results do not conform at different entries pinskia at gcc dot gnu dot org
  2006-09-05 14:15 ` patchapp at dberlin dot org
@ 2006-09-05 19:43 ` pault at gcc dot gnu dot org
  2006-10-03 20:13 ` pault at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-09-05 19:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pault at gcc dot gnu dot org  2006-09-05 19:42 -------
The patch is mine!

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-01-20 21:51:14         |2006-09-05 19:42:53
               date|                            |


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


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

* [Bug fortran/25091] Results do not conform at different entries
  2005-11-26 18:05 [Bug fortran/25091] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2006-09-05 19:43 ` pault at gcc dot gnu dot org
@ 2006-10-03 20:13 ` pault at gcc dot gnu dot org
  2006-10-03 20:16 ` pault at gcc dot gnu dot org
  2006-10-24  8:06 ` fxcoudert at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-10-03 20:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pault at gcc dot gnu dot org  2006-10-03 20:13 -------
Subject: Bug 25091

Author: pault
Date: Tue Oct  3 20:13:03 2006
New Revision: 117413

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117413
Log:
2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/29284
        PR fortran/29321
        PR fortran/29322
        * trans-expr.c (gfc_conv_function_call): Check the expression
        and the formal symbol are present when testing the actual
        argument.

        PR fortran/25091
        PR fortran/25092
        * resolve.c (resolve_entries): It is an error if the entries
        of an array-valued function do not have the same shape.

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/29284
        * gfortran.dg/optional_assumed_charlen_1.f90: New test.

        PR fortran/29321
        PR fortran/29322
        * gfortran.dg/missing_optional_dummy_2.f90: New test.

        PR fortran/25091
        PR fortran/25092
        * gfortran.dg/entry_array_specs_1.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/entry_array_specs_1.f90
    trunk/gcc/testsuite/gfortran.dg/missing_optional_dummy_2.f90
    trunk/gcc/testsuite/gfortran.dg/optional_assumed_charlen_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/25091] Results do not conform at different entries
  2005-11-26 18:05 [Bug fortran/25091] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2006-10-03 20:13 ` pault at gcc dot gnu dot org
@ 2006-10-03 20:16 ` pault at gcc dot gnu dot org
  2006-10-24  8:06 ` fxcoudert at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-10-03 20:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pault at gcc dot gnu dot org  2006-10-03 20:16 -------
Fixed on trunk

Paul


-- 

pault at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/25091] Results do not conform at different entries
  2005-11-26 18:05 [Bug fortran/25091] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2006-10-03 20:16 ` pault at gcc dot gnu dot org
@ 2006-10-24  8:06 ` fxcoudert at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-24  8:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from fxcoudert at gcc dot gnu dot org  2006-10-24 08:06 -------
Subject: Bug 25091

Author: fxcoudert
Date: Tue Oct 24 08:05:55 2006
New Revision: 117996

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117996
Log:
A bunch of backports:

        PR fortran/29284
        PR fortran/29321
        PR fortran/29322
        * trans-expr.c (gfc_conv_function_call): Check the expression
        and the formal symbol are present when testing the actual
        argument.

        PR fortran/25091
        PR fortran/25092
        * resolve.c (resolve_entries): It is an error if the entries
        of an array-valued function do not have the same shape.

        PR fortran/29284
        * gfortran.dg/optional_assumed_charlen_1.f90: New test.

        PR fortran/29321
        PR fortran/29322
        * gfortran.dg/missing_optional_dummy_2.f90: New test.

        PR fortran/25091
        PR fortran/25092
        * gfortran.dg/entry_array_specs_1.f90: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/entry_array_specs_1.f90
      - copied unchanged from r117413,
trunk/gcc/testsuite/gfortran.dg/entry_array_specs_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/missing_optional_dummy_2.f90
      - copied unchanged from r117413,
trunk/gcc/testsuite/gfortran.dg/missing_optional_dummy_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/optional_assumed_charlen_1.f90
      - copied unchanged from r117413,
trunk/gcc/testsuite/gfortran.dg/optional_assumed_charlen_1.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/fortran/trans-expr.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2006-10-24  8:06 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/25091] New: better diagnostic needed jv244 at cam dot ac dot uk
2006-01-20 21:51 ` [Bug fortran/25091] Results do not conform at different entries pinskia at gcc dot gnu dot org
2006-09-05 14:15 ` patchapp at dberlin dot org
2006-09-05 19:43 ` pault at gcc dot gnu dot org
2006-10-03 20:13 ` pault at gcc dot gnu dot org
2006-10-03 20:16 ` pault at gcc dot gnu dot org
2006-10-24  8:06 ` fxcoudert 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).