public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20884] New: error needed
@ 2005-04-08 16:02 jv244 at cam dot ac dot uk
  2005-05-19 17:02 ` [Bug fortran/20884] subroutine accepted in operator interface tobi at gcc dot gnu dot org
  2005-09-30 20:44 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-04-08 16:02 UTC (permalink / raw)
  To: gcc-bugs

The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95'


MODULE TEST
   INTERFACE OPERATOR (.EqualTo.)
     MODULE PROCEDURE Is_Equal_To_Single
   END INTERFACE OPERATOR (.EqualTo.)
CONTAINS
 ! should be a function 7.3
 SUBROUTINE Is_Equal_To_Single(x,y)
   real :: x,y
 END SUBROUTINE
END MODULE
END

-- 
           Summary: error needed
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/20884] subroutine accepted in operator interface
  2005-04-08 16:02 [Bug fortran/20884] New: error needed jv244 at cam dot ac dot uk
@ 2005-05-19 17:02 ` tobi at gcc dot gnu dot org
  2005-09-30 20:44 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-05-19 17:02 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-19 17:01:34
               date|                            |
            Summary|error needed                |subroutine accepted in
                   |                            |operator interface


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


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

* [Bug fortran/20884] subroutine accepted in operator interface
  2005-04-08 16:02 [Bug fortran/20884] New: error needed jv244 at cam dot ac dot uk
  2005-05-19 17:02 ` [Bug fortran/20884] subroutine accepted in operator interface tobi at gcc dot gnu dot org
@ 2005-09-30 20:44 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-30 20:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-30 20:44 -------
Seg fault on the mainline:
#0  0x080613b1 in gfc_match_end_interface ()
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/interface.c:297
#1  0x0805666f in gfc_match_end (st=0xbff95850)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/decl.c:2677
#2  0x0807bd4c in decode_statement ()
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/parse.c:209
#3  0x0807be95 in next_statement () at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/parse.c:
356
#4  0x0807d41d in parse_spec (st=ST_INTERFACE)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/parse.c:1424
#5  0x0807dd6e in gfc_parse_file ()
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/parse.c:2469
#6  0x08097585 in gfc_be_parse_file (set_yydebug=0)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/f95-lang.c:256


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|i686-pc-linux-gnu           |
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|2005-05-19 17:01:34         |2005-09-30 20:44:48
               date|                            |


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


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

* [Bug fortran/20884] subroutine accepted in operator interface
       [not found] <bug-20884-6642@http.gcc.gnu.org/bugzilla/>
  2005-12-31 20:01 ` pinskia at gcc dot gnu dot org
@ 2006-05-31 20:22 ` tkoenig at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-05-31 20:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tkoenig at gcc dot gnu dot org  2006-05-31 20:22 -------
This is caught on mainline:

$ gfortran qq.f90
 In file qq.f90:3

     MODULE PROCEDURE Is_Equal_To_Single
                                       1
Error: User operator procedure 'is_equal_to_single' at (1) must be a FUNCTION
 In file qq.f90:3

     MODULE PROCEDURE Is_Equal_To_Single
                                       1
Error: First argument of operator interface at (1) must be INTENT(IN)
 In file qq.f90:3

     MODULE PROCEDURE Is_Equal_To_Single
                                       1
Error: Second argument of operator interface at (1) must be INTENT(IN)

This was also fixed by the fix for PR 27122.


-- 

tkoenig at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/20884] subroutine accepted in operator interface
       [not found] <bug-20884-6642@http.gcc.gnu.org/bugzilla/>
@ 2005-12-31 20:01 ` pinskia at gcc dot gnu dot org
  2006-05-31 20:22 ` tkoenig at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-31 20:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-12-31 20:01 -------
This no longer ICEs but it is still accepted.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |
   Last reconfirmed|2005-09-30 20:44:48         |2005-12-31 20:01:46
               date|                            |


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



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

end of thread, other threads:[~2006-05-31 20:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 16:02 [Bug fortran/20884] New: error needed jv244 at cam dot ac dot uk
2005-05-19 17:02 ` [Bug fortran/20884] subroutine accepted in operator interface tobi at gcc dot gnu dot org
2005-09-30 20:44 ` pinskia at gcc dot gnu dot org
     [not found] <bug-20884-6642@http.gcc.gnu.org/bugzilla/>
2005-12-31 20:01 ` pinskia at gcc dot gnu dot org
2006-05-31 20:22 ` tkoenig 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).