public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/36517] New: Type-spec in array constructor ignored for PARAMETER Date: Fri, 13 Jun 2008 06:12:00 -0000 [thread overview] Message-ID: <bug-36517-13404@http.gcc.gnu.org/bugzilla/> (raw) Type spec support for constructors was implemented in PR27997, however, it is not honored for the -std=f* checking for PARAMETERs. The following program works with default options, however, using -std=f2003 one gets the follow error message: Error: The CHARACTER elements of the array constructor at (1) must have the same length (1/3) (To compile the first two lines, the patch of PR36476 is needed.) CHARACTER (len=*) MY_STRING(1:3) PARAMETER ( MY_STRING = (/CHARACTER (len=3) :: "AC" , "B", "C" /) ) character(len=*), parameter :: str(2) = [character(len=3):: 'A','cc'] end -- Summary: Type-spec in array constructor ignored for PARAMETER Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36517
next reply other threads:[~2008-06-13 6:12 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-06-13 6:12 burnus at gcc dot gnu dot org [this message] 2008-06-13 9:55 ` [Bug fortran/36517] Type-spec in array constructor: Invalid error for -std=f2003/f2008 burnus at gcc dot gnu dot org 2008-06-13 13:30 ` burnus at gcc dot gnu dot org 2008-06-13 17:04 ` d at domob dot eu 2008-06-13 17:54 ` d at domob dot eu 2008-06-18 13:55 ` domob at gcc dot gnu dot org 2008-06-18 13:57 ` domob at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-36517-13404@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).