public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "n dot pinhao at netvisao dot pt" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/39490] New: Non-standard assignment of arrays of character objects Date: Wed, 18 Mar 2009 09:53:00 -0000 [thread overview] Message-ID: <bug-39490-17466@http.gcc.gnu.org/bugzilla/> (raw) gfortran accepts the following syntax for the assignment of character objects: CHARACTER(14) :: prop(4) = (/'name', 'data_file_name', 'Ho_units', 'mpolar_units'/) Although this is convenient, is not according to the Fortran standard that requires that all of the elements of a constructor be the same kind, type and for characters, length. According to this the correct syntax is: CHARACTER(14) :: prop(4) = (/'name ', 'data_file_name', & 'Ho_units ', 'mpolar_units '/) -- Summary: Non-standard assignment of arrays of character objects Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: n dot pinhao at netvisao dot pt GCC build triplet: Linux, x86_64 and i486 GCC host triplet: Linux, x86_64 and i486 GCC target triplet: Linux, x86_64 and i486 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39490
next reply other threads:[~2009-03-18 9:53 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-03-18 9:53 n dot pinhao at netvisao dot pt [this message] 2009-03-18 11:17 ` [Bug fortran/39490] " dominiq at lps dot ens dot fr 2009-03-18 19:13 ` burnus at gcc dot gnu dot org 2009-03-28 8:28 ` [Bug fortran/39490] Invalid character constructor rejected at -std=gnu since 4.4 fxcoudert 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-39490-17466@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).