public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25060]  New: better diagnostic needed
@ 2005-11-26 17:49 jv244 at cam dot ac dot uk
  2005-11-26 19:30 ` [Bug fortran/25060] assignment of assumed size array not allowed fxcoudert at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-11-26 17:49 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:

subroutine e(a)
   real, intent(out) :: a(*)
   a = 1.e0
end subroutine
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=25060


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

* [Bug fortran/25060] assignment of assumed size array not allowed
  2005-11-26 17:49 [Bug fortran/25060] New: better diagnostic needed jv244 at cam dot ac dot uk
@ 2005-11-26 19:30 ` fxcoudert at gcc dot gnu dot org
  2006-01-13 19:16 ` pault at gcc dot gnu dot org
  2006-01-23 16:30 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-11-26 19:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2005-11-26 19:30 -------
## g95 ##
In file foo.f90:3

   a = 1.e0
    1
Error: Can't determine UBOUND for the final dimension of assumed-size array at
(1)
## Intel ##
fortcom: Error: foo.f90, line 3: The upper bound shall not be omitted in the
last dimension of a reference to an assumed size array.   [A]
   a = 1.e0
---^
compilation aborted for foo.f90 (code 1)
## Portland ##
PGF90-S-0084-Illegal use of symbol a - extent of assumed size array is unknown
(foo.f90: 3)
  0 inform,   0 warnings,   1 severes, 0 fatal for e
## Sun ##

   a = 1.e0
   ^
"foo.f90", Line = 3, Column = 4: ERROR: A variable in an assignment statement
must not be an assumed-size array.


-- 

fxcoudert 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         |2005-11-26 19:30:48
               date|                            |
            Summary|better diagnostic needed    |assignment of assumed size
                   |                            |array not allowed


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


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

* [Bug fortran/25060] assignment of assumed size array not allowed
  2005-11-26 17:49 [Bug fortran/25060] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-26 19:30 ` [Bug fortran/25060] assignment of assumed size array not allowed fxcoudert at gcc dot gnu dot org
@ 2006-01-13 19:16 ` pault at gcc dot gnu dot org
  2006-01-23 16:30 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-01-13 19:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pault at gcc dot gnu dot org  2006-01-13 19:16 -------
I just noticed this one: As of tonight (20061301), trunk gives

 In file pr25029.f90:3

   a = 1.e0
   1
Error: The upper bound in the last dimension must appear in the reference to
the assumed size array 'a' at (1)

Tomorrow morning, 4.1 will do likewise.

Paul


-- 

pault at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/25060] assignment of assumed size array not allowed
  2005-11-26 17:49 [Bug fortran/25060] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-26 19:30 ` [Bug fortran/25060] assignment of assumed size array not allowed fxcoudert at gcc dot gnu dot org
  2006-01-13 19:16 ` pault at gcc dot gnu dot org
@ 2006-01-23 16:30 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 16:30 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=25060


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

end of thread, other threads:[~2006-01-23 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26 17:49 [Bug fortran/25060] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-26 19:30 ` [Bug fortran/25060] assignment of assumed size array not allowed fxcoudert at gcc dot gnu dot org
2006-01-13 19:16 ` pault at gcc dot gnu dot org
2006-01-23 16:30 ` 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).