public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20876] New: error needed
@ 2005-04-08 15:59 jv244 at cam dot ac dot uk
  2005-05-12  8:28 ` [Bug fortran/20876] " fxcoudert at gcc dot gnu dot org
  2005-09-30 20:38 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-04-08 15:59 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 TT
 TYPE data_type
   INTEGER :: I
 END TYPE data_type
 INTERFACE ASSIGNMENT (=)
   MODULE PROCEDURE set
 END INTERFACE
CONTAINS
  SUBROUTINE set(x1,x2)
    TYPE(data_type), INTENT(IN) :: x2
    TYPE(data_type), INTENT(OUT) :: x1
  END SUBROUTINE set
END MODULE
USE TT
TYPE(data_type) D(10)
FORALL (I=1:10) D(I)=data_type(0)
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=20876


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

* [Bug fortran/20876] error needed
  2005-04-08 15:59 [Bug fortran/20876] New: error needed jv244 at cam dot ac dot uk
@ 2005-05-12  8:28 ` fxcoudert at gcc dot gnu dot org
  2005-09-30 20:38 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-05-12  8:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-05-12 08:27 -------
This one currently segfaults.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-12 08:27:56
               date|                            |


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


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

* [Bug fortran/20876] error needed
  2005-04-08 15:59 [Bug fortran/20876] New: error needed jv244 at cam dot ac dot uk
  2005-05-12  8:28 ` [Bug fortran/20876] " fxcoudert at gcc dot gnu dot org
@ 2005-09-30 20:38 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-30 20:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-30 20:38 -------
We seg fault while trying to print an error message:
#0  show_locus (offset=0, loc=0x927130c)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/error.c:137
#1  0x0805cbdc in show_loci (l1=0x927130c, l2=0x0)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/error.c:270
#2  0x0805c56c in error_print (type=0x851cb61 "Error:", 
    format0=0x8524a04 "Subroutine call to '%s' in FORALL block at %L is not PURE", argp=Variable 
"argp" is not available.
)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/error.c:381
#3  0x0805c757 in gfc_error (
    nocmsgid=0x8524a04 "Subroutine call to '%s' in FORALL block at %L is not PURE")
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/error.c:595
#4  0x08081009 in pure_subroutine (c=0x9271300, sym=0x9265178)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/resolve.c:1134
#5  0x0808230a in resolve_specific_s0 (c=0x9271300, sym=0x9265178)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/resolve.c:1255
#6  0x080861ed in resolve_code (code=Variable "code" is not available.
)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/fortran/resolve.c:1269


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code


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


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

end of thread, other threads:[~2005-09-30 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 15:59 [Bug fortran/20876] New: error needed jv244 at cam dot ac dot uk
2005-05-12  8:28 ` [Bug fortran/20876] " fxcoudert at gcc dot gnu dot org
2005-09-30 20:38 ` 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).