public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/24705] ICE on assumed length character result Date: Thu, 10 Nov 2005 15:54:00 -0000 [thread overview] Message-ID: <20051110155431.6856.qmail@sourceware.org> (raw) In-Reply-To: <bug-24705-87@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from paul dot richard dot thomas at cea dot fr 2005-11-10 15:54 ------- The following patch fixes this PR. Please note that it has yet to be regtested but I do not see any problems with it. I do not thank that PR15809 has anything to do with this one. Index: gcc/gcc/fortran/resolve.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/fortran/resolve.c,v retrieving revision 1.63 diff -c -p -r1.63 resolve.c *** gcc/gcc/fortran/resolve.c 24 Oct 2005 19:28:17 -0000 1.63 --- gcc/gcc/fortran/resolve.c 10 Nov 2005 15:48:51 -0000 *************** resolve_contained_fntype (gfc_symbol * s *** 294,299 **** --- 294,307 ---- sym->attr.untyped = 1; } } + + if (sym->ts.type == BT_CHARACTER) + { + gfc_charlen *cl = sym->ts.cl; + if (!cl || !cl->length) + gfc_error ("Character-valued internal function '%s' at %L must " + "not be automatic length", sym->name, &sym->declared_at); + } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24705
next prev parent reply other threads:[~2005-11-10 15:54 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-11-07 13:09 [Bug fortran/24705] New: ICE on asterisk char-len-param-value on result jakub at gcc dot gnu dot org 2005-11-07 13:25 ` [Bug fortran/24705] ICE on assumed length charactor result pinskia at gcc dot gnu dot org 2005-11-10 15:54 ` paul dot richard dot thomas at cea dot fr [this message] 2005-11-21 16:06 ` [Bug fortran/24705] ICE on assumed length character result pault at gcc dot gnu dot org 2005-11-21 20:03 ` pault at gcc dot gnu dot org 2005-11-28 22:36 ` eedelman at gcc dot gnu dot org 2005-11-30 19:26 ` pault at gcc dot gnu dot org 2005-11-30 19:36 ` pault at gcc dot gnu dot org 2005-12-12 20:11 ` pinskia 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=20051110155431.6856.qmail@sourceware.org \ --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).