public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34429]  New: Fails: character(len=use_associated_const) function foo()
@ 2007-12-11  9:53 burnus at gcc dot gnu dot org
  2007-12-11 11:09 ` [Bug fortran/34429] " jv244 at cam dot ac dot uk
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-12-11  9:53 UTC (permalink / raw)
  To: gcc-bugs

I believe the following program is valid; it is compiled by g95, ifort, NAG
f95, but gfortran rejects it with:

  Error: Expression at (1) must be of INTEGER type

For the for KIND we had a similar problem, see
        PR fortran/31154
        PR fortran/31229
        PR fortran/33334
and     PR 34254

module m
  integer, parameter :: strlen = 5
end module m

character(strlen) function test()
  use m
  test = 'A'
end function test


-- 
           Summary: Fails: character(len=use_associated_const) function
                    foo()
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 32834
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34429


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-01-30  7:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-11  9:53 [Bug fortran/34429] New: Fails: character(len=use_associated_const) function foo() burnus at gcc dot gnu dot org
2007-12-11 11:09 ` [Bug fortran/34429] " jv244 at cam dot ac dot uk
2008-01-08 13:09 ` pault at gcc dot gnu dot org
2008-01-17  8:18 ` pault at gcc dot gnu dot org
2008-01-17 10:53 ` pault at gcc dot gnu dot org
2008-01-17 17:56 ` burnus at gcc dot gnu dot org
2008-01-17 18:02 ` dominiq at lps dot ens dot fr
2008-01-17 18:19 ` burnus at gcc dot gnu dot org
2008-01-17 22:32 ` pault at gcc dot gnu dot org
2008-01-30  8:44 ` pault at gcc dot gnu dot org
2008-01-30  9:53 ` 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).