public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45608] New: Bogus error about procedure attribute
@ 2010-09-09 4:39 jvdelisle at gcc dot gnu dot org
2010-09-09 5:35 ` [Bug fortran/45608] " burnus at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2010-09-09 4:39 UTC (permalink / raw)
To: gcc-bugs
This test case is invalid. It is rejected with an error message that is
nonsense in this context.
program test
implicit none
type line_struct
integer :: width = 10
end type
type symbol_struct
integer :: typee = 10
end type
type curve_struct
type (line_struct) line
type (symbol_struct) symbol
end type
type (curve_struct) curve
namelist / params / curve
!
open (1, file = 'test.nml')
read (1, nml = params)
print *, curve(1)%symbol%typee
end program
$ gfc -g test.f90
test.f90:20.17:
namelist / params / curve
1
Error: PROCEDURE attribute conflicts with NAMELIST attribute in 'curve' at (1)
Another example is:
program test2
implicit none
type line_struct
integer :: width = 10
end type
type symbol_struct
integer :: typee = 10
end type
type curve_struct
type (line_struct) line
type (symbol_struct) symbol
end type
type (curve_struct) curve
print *, curve(1)%symbol%typee
end program
$ gfc -g test2.f90
/tmp/ccuBUha0.o: In function `test':
/home/jerry/prs/pr45532/pr45532.f90:20: undefined reference to `curve_'
collect2: ld returned 1 exit status
--
Summary: Bogus error about procedure attribute
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jvdelisle at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45608
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-09 5:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-09 4:39 [Bug fortran/45608] New: Bogus error about procedure attribute jvdelisle at gcc dot gnu dot org
2010-09-09 5:35 ` [Bug fortran/45608] " burnus 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).