public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "wileamyp at outlook dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102003] [PDT] Length of character component not simplified Date: Mon, 13 Jun 2022 13:11:03 +0000 [thread overview] Message-ID: <bug-102003-4-5duQdgmVZk@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-102003-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102003 Wileam Yonatan Phan <wileamyp at outlook dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wileamyp at outlook dot com --- Comment #1 from Wileam Yonatan Phan <wileamyp at outlook dot com> --- Behavior confirmed with master@ff91735a5b8. The error message seems to change if this code block is commented out in gcc/fortran/expr.cc --- diff --git a/gcc/fortran/expr.cc b/gcc/fortran/expr.cc index be94c18c836..e5a3df214d7 100644 --- a/gcc/fortran/expr.cc +++ b/gcc/fortran/expr.cc @@ -3201,12 +3201,14 @@ gfc_match_init_expr (gfc_expr **result) return m; } + #if 0 if (gfc_derived_parameter_expr (expr)) { *result = expr; gfc_init_expr_flag = false; return m; } + #endif t = gfc_reduce_init_expr (expr); if (!t) --- Anyway, the new error message is pr102003.f90:6:33: 6 | integer, parameter :: m = len (p% c) ! rejected | 1 Error: Parameter ‘p’ at (1) has not been declared or is a variable, which does not reduce to a constant expression Maybe something doesn't work properly in gfc_reduce_init_expr()?
next prev parent reply other threads:[~2022-06-13 13:11 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-20 19:11 [Bug fortran/102003] New: " anlauf at gcc dot gnu.org 2022-06-13 13:11 ` wileamyp at outlook dot com [this message] 2023-06-30 8:22 ` [Bug fortran/102003] " pault at gcc dot gnu.org 2023-07-10 15:53 ` vehre at gcc dot gnu.org 2023-07-12 11:35 ` cvs-commit at gcc dot gnu.org 2023-07-20 11:56 ` vehre at gcc dot gnu.org 2024-04-26 7:07 ` cvs-commit at gcc dot gnu.org 2024-04-26 16:51 ` cvs-commit at gcc dot gnu.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-102003-4-5duQdgmVZk@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).