public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31494] New: spurious error: PROCEDURE attribute conflicts with DIMENSION attribute
@ 2007-04-06 16:22 michael dot a dot richmond at nasa dot gov
2007-04-08 18:49 ` [Bug fortran/31494] " pault at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-04-06 16:22 UTC (permalink / raw)
To: gcc-bugs
When I compile the module listed below I get the following message:
k.f90:5.13:
CALL sub2
1
Error: PROCEDURE attribute conflicts with DIMENSION attribute in 'sub2' at (1)
It resembles Bug 24633. However, g95 and Lahey regard 24633 as an error but do
not regard this as an error.
MODULE ksbin2_aux_mod
REAL, DIMENSION(1) :: sub2
CONTAINS
SUBROUTINE sub1
CALL sub2
CONTAINS
SUBROUTINE sub2
END SUBROUTINE sub2
END SUBROUTINE sub1
END MODULE ksbin2_aux_mod
--
Summary: spurious error: PROCEDURE attribute conflicts with
DIMENSION attribute
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael dot a dot richmond at nasa dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31494
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/31494] spurious error: PROCEDURE attribute conflicts with DIMENSION attribute
2007-04-06 16:22 [Bug fortran/31494] New: spurious error: PROCEDURE attribute conflicts with DIMENSION attribute michael dot a dot richmond at nasa dot gov
@ 2007-04-08 18:49 ` pault at gcc dot gnu dot org
2007-05-22 8:07 ` pault at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-04-08 18:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pault at gcc dot gnu dot org 2007-04-08 19:49 -------
Confirmed
>
> It resembles Bug 24633. However, g95 and Lahey regard 24633 as an error but do
> not regard this as an error.
In actual fact, it is the same as pr30746. Both make wrong host associations,
when doubly contained procedures are at play. gfortran and, to some degree,
g95 deny the possibility of such a thing:)
I have been thinking about how best to fix pr30746 and will add this one to my
reflections.
Thanks for the report.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |30746
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2007-04-08 19:49:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31494
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/31494] spurious error: PROCEDURE attribute conflicts with DIMENSION attribute
2007-04-06 16:22 [Bug fortran/31494] New: spurious error: PROCEDURE attribute conflicts with DIMENSION attribute michael dot a dot richmond at nasa dot gov
2007-04-08 18:49 ` [Bug fortran/31494] " pault at gcc dot gnu dot org
@ 2007-05-22 8:07 ` pault at gcc dot gnu dot org
2007-06-24 19:10 ` patchapp at dberlin dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-05-22 8:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pault at gcc dot gnu dot org 2007-05-22 09:07 -------
(In reply to comment #1)
> I have been thinking about how best to fix pr30746 and will add this one to my
> reflections.
I fixed 30746 but this PR remains. It is, if anything, a bit more difficult
because there is at least one further error behind the one that you report.
*sigh*
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31494
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/31494] spurious error: PROCEDURE attribute conflicts with DIMENSION attribute
2007-04-06 16:22 [Bug fortran/31494] New: spurious error: PROCEDURE attribute conflicts with DIMENSION attribute michael dot a dot richmond at nasa dot gov
2007-04-08 18:49 ` [Bug fortran/31494] " pault at gcc dot gnu dot org
2007-05-22 8:07 ` pault at gcc dot gnu dot org
@ 2007-06-24 19:10 ` patchapp at dberlin dot org
2007-06-25 14:56 ` pault at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: patchapp at dberlin dot org @ 2007-06-24 19:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2007-06-24 19:10 -------
Subject: Bug number PR31494
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01812.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31494
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/31494] spurious error: PROCEDURE attribute conflicts with DIMENSION attribute
2007-04-06 16:22 [Bug fortran/31494] New: spurious error: PROCEDURE attribute conflicts with DIMENSION attribute michael dot a dot richmond at nasa dot gov
` (2 preceding siblings ...)
2007-06-24 19:10 ` patchapp at dberlin dot org
@ 2007-06-25 14:56 ` pault at gcc dot gnu dot org
2007-06-25 18:28 ` pault at gcc dot gnu dot org
2007-06-25 18:29 ` pault at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-06-25 14:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pault at gcc dot gnu dot org 2007-06-25 14:56 -------
I'd better take this on since I have had my patch for it accepted!
Thanks for the report, Michael.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-04-08 19:49:39 |2007-06-25 14:56:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31494
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/31494] spurious error: PROCEDURE attribute conflicts with DIMENSION attribute
2007-04-06 16:22 [Bug fortran/31494] New: spurious error: PROCEDURE attribute conflicts with DIMENSION attribute michael dot a dot richmond at nasa dot gov
` (3 preceding siblings ...)
2007-06-25 14:56 ` pault at gcc dot gnu dot org
@ 2007-06-25 18:28 ` pault at gcc dot gnu dot org
2007-06-25 18:29 ` pault at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-06-25 18:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pault at gcc dot gnu dot org 2007-06-25 18:28 -------
Subject: Bug 31494
Author: pault
Date: Mon Jun 25 18:27:59 2007
New Revision: 126000
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126000
Log:
2007-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32464
* resolve.c (check_host_association): Return if the old symbol
is use associated. Introduce retval to reduce the number of
evaluations of the first-order return value.
PR fortran/31494
* match.c (gfc_match_call): If a host associated symbol is not
a subroutine, build a new symtree/symbol in the current name
space.
2007-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32464
* gfortran.dg/host_assoc_function_2.f90: New test.
PR fortran/31494
* gfortran.dg/host_assoc_call_1.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/host_assoc_call_1.f90
trunk/gcc/testsuite/gfortran.dg/host_assoc_function_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/match.c
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31494
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/31494] spurious error: PROCEDURE attribute conflicts with DIMENSION attribute
2007-04-06 16:22 [Bug fortran/31494] New: spurious error: PROCEDURE attribute conflicts with DIMENSION attribute michael dot a dot richmond at nasa dot gov
` (4 preceding siblings ...)
2007-06-25 18:28 ` pault at gcc dot gnu dot org
@ 2007-06-25 18:29 ` pault at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-06-25 18:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pault at gcc dot gnu dot org 2007-06-25 18:28 -------
Fixed on trunk.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31494
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-06-25 18:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-06 16:22 [Bug fortran/31494] New: spurious error: PROCEDURE attribute conflicts with DIMENSION attribute michael dot a dot richmond at nasa dot gov
2007-04-08 18:49 ` [Bug fortran/31494] " pault at gcc dot gnu dot org
2007-05-22 8:07 ` pault at gcc dot gnu dot org
2007-06-24 19:10 ` patchapp at dberlin dot org
2007-06-25 14:56 ` pault at gcc dot gnu dot org
2007-06-25 18:28 ` pault at gcc dot gnu dot org
2007-06-25 18:29 ` 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).