From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11448 invoked by alias); 16 Mar 2007 12:42:16 -0000 Received: (qmail 11423 invoked by uid 48); 16 Mar 2007 12:42:04 -0000 Date: Fri, 16 Mar 2007 12:42:00 -0000 Subject: [Bug fortran/31222] New: Rejected: implicitly-typed dummys used in initialization expressions X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg01523.txt.bz2 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