public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tobias dot burnus at physik dot fu-berlin dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/27996] New: Compile time warn for: character(2) :: str = 'ABC' (expression truncated) Date: Mon, 12 Jun 2006 10:25:00 -0000 [thread overview] Message-ID: <bug-27996-1719@http.gcc.gnu.org/bugzilla/> (raw) In the following, the assignment to str gets truncated twice. gfortran -Wall does not give any warning. Expected: As similar warning as NAG gives: Warning: trunc.f90, line 2: Initialisation expression for STR truncated At least the first initalization should be detected, possibly also the second. Such error messaging works for real, dimension(3) :: [1.0, 2.0, 3.0] at both places: Error: different shape for Array assignment at (1) on dimension 1 (2/3) --------------- program test character(2) :: c = 'AAA' c = 'ABC' print *, c end program test --------------- -- Summary: Compile time warn for: character(2) :: str = 'ABC' (expression truncated) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tobias dot burnus at physik dot fu-berlin dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27996
next reply other threads:[~2006-06-12 10:03 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-06-12 10:25 tobias dot burnus at physik dot fu-berlin dot de [this message] 2006-06-13 17:26 ` [Bug fortran/27996] " pault at gcc dot gnu dot org 2006-06-23 13:59 ` tobias dot burnus at physik dot fu-berlin dot de 2006-11-29 20:01 ` patchapp at dberlin dot org 2007-01-05 14:46 ` pault at gcc dot gnu dot org 2007-01-14 14:51 ` [Bug fortran/27996] [4.2 and 4.1 only] " pault at gcc dot gnu dot org 2007-01-14 14:53 ` [Bug fortran/27996] [4.1 " pault 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-27996-1719@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).