public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31222]  New: Rejected: implicitly-typed dummys used in initialization expressions
@ 2007-03-16 12:42 burnus at gcc dot gnu dot org
  2007-03-16 15:05 ` [Bug fortran/31222] " fxcoudert at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-03-16 12:42 UTC (permalink / raw)
  To: gcc-bugs

Reported at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/100b8994f011019b/


The following program is rejected with:

bar.f90:5.17:
 dimension a(abs(mode)),b(int(dis))
                1
Error: 'a' argument of 'abs' intrinsic at (1) must be a numeric type
bar.f90:5.30:
 dimension a(abs(mode)),b(int(dis))
                             1
Error: 'a' argument of 'int' intrinsic at (1) must be a numeric type


-------------
program testprog
   call mysub1((/-2.0/), (/3.2/),-1, 1.0)
contains
subroutine mysub1(a,b,mode,dis)
 dimension a(abs(mode)),b(int(dis))
   write (*,*) abs(mode), nint(dis)
end subroutine
end program


-- 
           Summary: Rejected: implicitly-typed dummys used in initialization
                    expressions
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-04-07 20:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 12:42 [Bug fortran/31222] New: Rejected: implicitly-typed dummys used in initialization expressions burnus at gcc dot gnu dot org
2007-03-16 15:05 ` [Bug fortran/31222] " fxcoudert at gcc dot gnu dot org
2007-03-16 15:07 ` fxcoudert at gcc dot gnu dot org
2007-03-29 23:34 ` pault at gcc dot gnu dot org
2007-04-05 21:00 ` pault at gcc dot gnu dot org
2007-04-07 20:21 ` pault at gcc dot gnu dot org
2007-04-07 20:32 ` pault 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).