[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-13 Thread burnus at gcc dot gnu dot org
--- Comment #9 from burnus at gcc dot gnu dot org 2008-01-13 21:49 --- Fixed on the trunk (4.3.0). Thanks for the report! -- burnus at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-13 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2008-01-13 21:36 --- Subject: Bug 34665 Author: burnus Date: Sun Jan 13 21:35:33 2008 New Revision: 131513 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131513 Log: 2008-01-13 Tobias Burnus <[EMAIL PROTECTED]> PR fort

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-13 Thread burnus at gcc dot gnu dot org
--- Comment #7 from burnus at gcc dot gnu dot org 2008-01-13 17:41 --- > One has to be careful not to to get the same problem as with SHAPE in PR > 34759, > i.e. passing a rank-2 array A(:,:,5) defined as rank-3 assumed-shape array > A(:,:,*). This is actually already properly handled.

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-12 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2008-01-12 21:13 --- One has to be careful not to to get the same problem as with SHAPE in PR 34759, i.e. passing a rank-2 array A(:,:,5) defined as rank-3 assumed-shape array A(:,:,*). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-12 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-01-12 14:36 --- A related but slightly separate issue is illustrated by the following example. The argument of the second call to FOO is an expression; however, expressions involving assumed-size arrays are evil. This is detected for

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-06 Thread burnus at gcc dot gnu dot org
-- burnus at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot |dot org

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-05 Thread tkoenig at gcc dot gnu dot org
--- Comment #4 from tkoenig at gcc dot gnu dot org 2008-01-05 14:57 --- (In reply to comment #3) > > We catch this with an explicit interface, but we > > should still check for occurrence in the > > same source code. > > I do not understand this part. Ooops, you're correct. Yes, we s

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-04 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2008-01-04 19:28 --- > We catch this with an explicit interface, but we > should still check for occurrence in the > same source code. I do not understand this part. There is an explicit interface available as both are contained in the s

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-04 Thread tkoenig at gcc dot gnu dot org
--- Comment #2 from tkoenig at gcc dot gnu dot org 2008-01-04 09:26 --- We catch this with an explicit interface, but we should still check for occurrence in the same source code. Setting to "diagnostic" as we aren't required to catch this (no constraint violation). -- tkoenig at gc

[Bug fortran/34665] Cannot pass scalar to array argument 'a'

2008-01-03 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-01-04 07:11 --- Confirm. NAG f95 prints: Error: Element of assumed-shape array A supplied for array argument A (no. 1) of S2 ifort: Error: If the actual argument is scalar, the corresponding dummy argument shall be scalar unless th