public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30879] New: incorrect error message for valid code
@ 2007-02-20 7:53 jv244 at cam dot ac dot uk
2007-02-20 17:00 ` [Bug fortran/30879] Syntax error for derived type's compounds in a data-stmt-value-set burnus at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-02-20 7:53 UTC (permalink / raw)
To: gcc-bugs
With recent trunk, gfortran incorrectly generates an error for the following
standard code:
TYPE T1
INTEGER :: I
END TYPE T1
TYPE(T1), PARAMETER :: D1=T1(2)
INTEGER :: a(2)
DATA (a(i),i=1,D1%I) /D1%I*D1%I/
END
--
Summary: incorrect error message for valid code
Product: gcc
Version: 4.3.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=30879
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/30879] Syntax error for derived type's compounds in a data-stmt-value-set
2007-02-20 7:53 [Bug fortran/30879] New: incorrect error message for valid code jv244 at cam dot ac dot uk
@ 2007-02-20 17:00 ` burnus at gcc dot gnu dot org
2007-03-12 15:41 ` pault at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-02-20 17:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2007-02-20 17:00 -------
gfortran:
DATA (a(i),i=1,D1%I) /D1%I*D1%I/
1
Error: Syntax error in DATA statement at (1)
That is: compounds of derived types with parameter attribute are not possible
as data-stmt-value in gfortran.
ifort, g95 and nagf95 compile this program.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2007-02-20 17:00:22
date| |
Summary|incorrect error message for |Syntax error for derived
|valid code |type's compounds in a data-
| |stmt-value-set
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30879
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/30879] Syntax error for derived type's compounds in a data-stmt-value-set
2007-02-20 7:53 [Bug fortran/30879] New: incorrect error message for valid code jv244 at cam dot ac dot uk
2007-02-20 17:00 ` [Bug fortran/30879] Syntax error for derived type's compounds in a data-stmt-value-set burnus at gcc dot gnu dot org
@ 2007-03-12 15:41 ` pault at gcc dot gnu dot org
2007-03-15 6:45 ` pault at gcc dot gnu dot org
2007-03-27 9:06 ` [Bug fortran/30879] [4.2/4.1 only] " pault at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-03-12 15:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pault at gcc dot gnu dot org 2007-03-12 15:40 -------
I just submitted a patch for this PR.
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-02-20 17:00:22 |2007-03-12 15:40:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30879
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/30879] Syntax error for derived type's compounds in a data-stmt-value-set
2007-02-20 7:53 [Bug fortran/30879] New: incorrect error message for valid code jv244 at cam dot ac dot uk
2007-02-20 17:00 ` [Bug fortran/30879] Syntax error for derived type's compounds in a data-stmt-value-set burnus at gcc dot gnu dot org
2007-03-12 15:41 ` pault at gcc dot gnu dot org
@ 2007-03-15 6:45 ` pault at gcc dot gnu dot org
2007-03-27 9:06 ` [Bug fortran/30879] [4.2/4.1 only] " pault at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-03-15 6:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pault at gcc dot gnu dot org 2007-03-15 06:44 -------
Subject: Bug 30879
Author: pault
Date: Thu Mar 15 06:44:25 2007
New Revision: 122944
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122944
Log:
2007-03-15 Tobias Burnus <burnus@gcc.gnu.org>
Paul Thomas <pault@gcc.gnu.org>
PR fortran/30922
* decl.c (gfc_match_import): If the parent of the current name-
space is null, try looking for an imported symbol in the parent
of the proc_name interface.
* resolve.c (resolve_fl_variable): Do not check for blocking of
host association by a same symbol, if the symbol is in an
interface body.
2007-03-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30879
* decl.c (match_data_constant): Before going on to try to match
a name, try to match a structure component.
PR fortran/30870
* resolve.c (resolve_actual_arglist): Do not reject a generic
actual argument if it has a same name specific interface.
PR fortran/31163
* trans-array.c (parse_interface): Do not nullify allocatable
components if the symbol has the saved attribute.
2007-03-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30922
* gfortran.dg/import5.f90.f90: New test.
PR fortran/30879
* gfortran.dg/data_components_1.f90: New test.
PR fortran/30870
* gfortran.dg/generic_13.f90: New test.
PR fortran/31163
* gfortran.dg/alloc_comp_basics_5.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/alloc_comp_basics_5.f90
trunk/gcc/testsuite/gfortran.dg/data_components_1.f90
trunk/gcc/testsuite/gfortran.dg/generic_13.f90
trunk/gcc/testsuite/gfortran.dg/import5.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/trans-array.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30879
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/30879] [4.2/4.1 only] Syntax error for derived type's compounds in a data-stmt-value-set
2007-02-20 7:53 [Bug fortran/30879] New: incorrect error message for valid code jv244 at cam dot ac dot uk
` (2 preceding siblings ...)
2007-03-15 6:45 ` pault at gcc dot gnu dot org
@ 2007-03-27 9:06 ` pault at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-03-27 9:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pault at gcc dot gnu dot org 2007-03-27 10:06 -------
This is not a regression wrt 4.1 so closing.
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=30879
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-03-27 9:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-20 7:53 [Bug fortran/30879] New: incorrect error message for valid code jv244 at cam dot ac dot uk
2007-02-20 17:00 ` [Bug fortran/30879] Syntax error for derived type's compounds in a data-stmt-value-set burnus at gcc dot gnu dot org
2007-03-12 15:41 ` pault at gcc dot gnu dot org
2007-03-15 6:45 ` pault at gcc dot gnu dot org
2007-03-27 9:06 ` [Bug fortran/30879] [4.2/4.1 only] " 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).