public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38312]  New: poor error message
@ 2008-11-28 20:59 jv244 at cam dot ac dot uk
  2008-12-11 19:01 ` [Bug fortran/38312] Unexpected STATEMENT FUNCTION statement kargl at gcc dot gnu dot org
  2008-12-11 19:03 ` kargl at gcc dot gnu dot org
  0 siblings, 2 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-11-28 20:59 UTC (permalink / raw)
  To: gcc-bugs

> cat test.f90
 SUBROUTINE S1(t1,t2,c0,n)
   REAL :: t1(n,n),t2(n,n),c0(n,n)
   INTEGER :: i,j,k
   DO i=1,n
   DO j=1,n
   DO k=1,n
      co(i,j)=t1(i,k)*t2(j,k)
   ENDDO
   ENDDO
   ENDDO
 END SUBROUTINE S1
> gfortran  test.f90
test.f90:7.29:

      co(i,j)=t1(i,k)*t2(j,k)
                            1
Error: Unexpected STATEMENT FUNCTION statement at (1)

I couldn't agree more, but some users might get confused. 
Imagine you take your 'Fortran 90/95 for Scientists and Engineers' book to
understand what the compiler really means.


-- 
           Summary: poor error message
           Product: gcc
           Version: 4.4.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=38312


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

end of thread, other threads:[~2013-05-18  2:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-38312-4@http.gcc.gnu.org/bugzilla/>
2011-11-12 22:41 ` [Bug fortran/38312] Unexpected STATEMENT FUNCTION statement kargl at gcc dot gnu.org
2011-11-12 23:31 ` sgk at troutmask dot apl.washington.edu
2013-05-18  2:52 ` bdavis at gcc dot gnu.org
2008-11-28 20:59 [Bug fortran/38312] New: poor error message jv244 at cam dot ac dot uk
2008-12-11 19:01 ` [Bug fortran/38312] Unexpected STATEMENT FUNCTION statement kargl at gcc dot gnu dot org
2008-12-11 19:03 ` kargl 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).