public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/17192] Functions returning character pointer via argument are broken Date: Wed, 11 May 2005 08:11:00 -0000 [thread overview] Message-ID: <20050511081056.7075.qmail@sourceware.org> (raw) In-Reply-To: <20040825220057.17192.tobi@gcc.gnu.org> ------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-05-11 08:10 ------- It does still compile, but does still not return the right answer. The problem disappears if "integer" is used instead of "character*5". The tree dump (obtained with -fdump-tree-original) is: s (__result, .__result, e, d, _e, _d) { _gfortran_copy_string (5, e, 5, d); __result = (char[1:5] * &) &c; MAIN__ () { char c[1:5]; char[1:5] * p; static void s (char[1:5] * &, int4, char[1:5] &, char[1:5] &, int4, int4); _gfortran_copy_string (5, &c, 5, "Hallo"); p = (char[1:5] *) &c; { char str.0[5]; s ((char[1:5] *) &str.0, 5, &c, p, 5, 5); _gfortran_copy_string (5, &c, 5, (char[1:5] *) &str.0); } /* ...snip... call output routines */ } -- What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code | Last reconfirmed|2004-11-11 05:20:44 |2005-05-11 08:10:52 date| | Summary|Functions returning pointer |Functions returning |via argument are broken |character pointer via | |argument are broken http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17192
next prev parent reply other threads:[~2005-05-11 8:11 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-08-25 22:01 [Bug fortran/17192] New: Functions returning " tobi at gcc dot gnu dot org 2004-08-25 22:10 ` [Bug fortran/17192] " tobi at gcc dot gnu dot org 2004-08-25 22:56 ` tobi at gcc dot gnu dot org 2004-08-25 22:59 ` tobi at gcc dot gnu dot org 2004-08-25 23:29 ` pinskia at gcc dot gnu dot org 2004-09-08 19:05 ` toon at moene dot indiv dot nluug dot nl 2005-05-11 8:11 ` fxcoudert at gcc dot gnu dot org [this message] 2005-05-29 16:03 ` [Bug fortran/17192] Functions returning character " cvs-commit at gcc dot gnu dot org 2005-06-05 8:59 ` cvs-commit at gcc dot gnu dot org 2005-06-05 22:43 ` pault at gcc dot gnu dot org 2005-06-05 22:44 ` pault at gcc dot gnu dot org 2005-06-05 22:49 ` 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=20050511081056.7075.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).