public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29142] New: gfortran - incorrectly flags error on allocatable variable in TYPE declaration
@ 2006-09-19 14:43 dir at lanl dot gov
2006-09-19 16:41 ` [Bug fortran/29142] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: dir at lanl dot gov @ 2006-09-19 14:43 UTC (permalink / raw)
To: gcc-bugs
The other compilers are happy with this TYPE declaration - so I guess that it
is ok -
[dranta:~/tests/gfortran-D] dir% g95 -c struct02.f90
[dranta:~/tests/gfortran-D] dir% f90 -c struct02.f90
[dranta:~/tests/gfortran-D] dir% xlf95 -qsuffix=f=f90 -c struct02.f90
** plot_hdf === End of Compilation 1 ===
1501-510 Compilation successful for file struct02.f90.
[dranta:~/tests/gfortran-D] dir% gfortran -c struct02.f90
In file struct02.f90:5
real, dimension(:), allocatable :: data
1
Error: Attribute at (1) is not allowed in a TYPE definition
In file struct02.f90:6
end type SDS2Dout
1
Error: Derived type definition at (1) has no components
[dranta:~/tests/gfortran-D] dir% cat struct02.f90
module plot_hdf
implicit none
save
type, public :: SDS2Dout
real, dimension(:), allocatable :: data
end type SDS2Dout
end module plot_hdf
[dranta:~/tests/gfortran-D] dir% gfortran --v
Using built-in specs.
Target: powerpc-apple-darwin8.7.0
Configured with: ../gcc/configure --prefix=/usr/local/gfortran
--enable-languages=c,f95
Thread model: posix
gcc version 4.2.0 20060919 (experimental)
--
Summary: gfortran - incorrectly flags error on allocatable
variable in TYPE declaration
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dir at lanl dot gov
GCC host triplet: Darwin 8.7.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29142
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/29142] gfortran - incorrectly flags error on allocatable variable in TYPE declaration
2006-09-19 14:43 [Bug fortran/29142] New: gfortran - incorrectly flags error on allocatable variable in TYPE declaration dir at lanl dot gov
@ 2006-09-19 16:41 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-19 16:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-19 16:41 -------
This is an extension to both Fortran 90 and Fortran 95. It is part of Fortran
2003 though.
Anyways this is a dup of bug 20541.
*** This bug has been marked as a duplicate of 20541 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29142
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-19 16:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-19 14:43 [Bug fortran/29142] New: gfortran - incorrectly flags error on allocatable variable in TYPE declaration dir at lanl dot gov
2006-09-19 16:41 ` [Bug fortran/29142] " pinskia 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).