public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/55932] [F03] ICE for structure constructor with scalar allocatable component
Date: Sun, 05 Jan 2014 17:40:00 -0000	[thread overview]
Message-ID: <bug-55932-4-KWsdQ4vkaT@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55932-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55932

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |janus at gcc dot gnu.org
            Summary|DDT's default structure     |[F03] ICE for structure
                   |constructor does not work   |constructor with scalar
                   |with having allocatable     |allocatable component
                   |member variables            |

--- Comment #3 from janus at gcc dot gnu.org ---
Slightly compactified test case:

  IMPLICIT NONE 
  TYPE :: test_typ
      REAL, ALLOCATABLE :: a
  END TYPE
  TYPE(test_typ) :: my_test_typ
  my_test_typ = test_typ(1.0)
END


The backtrace with 4.9 trunk is:


internal compiler error: in fold_convert_loc, at fold-const.c:1994
   my_test_typ = test_typ(1.0)
 ^
0x7969df fold_convert_loc(unsigned int, tree_node*, tree_node*)
    /home/jweil/gcc49/trunk/gcc/fold-const.c:1993
0x6429c2 gfc_trans_scalar_assign(gfc_se*, gfc_se*, gfc_typespec, bool, bool,
bool)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-expr.c:6991
0x648b8f gfc_trans_subcomponent_assign
    /home/jweil/gcc49/trunk/gcc/fortran/trans-expr.c:6052
0x648b8f gfc_trans_structure_assign
    /home/jweil/gcc49/trunk/gcc/fortran/trans-expr.c:6099
0x649ad2 gfc_conv_structure(gfc_se*, gfc_expr*, int)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-expr.c:6126
0x64769c gfc_conv_expr(gfc_se*, gfc_expr*)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-expr.c:6285
0x64c0c6 gfc_trans_assignment_1
    /home/jweil/gcc49/trunk/gcc/fortran/trans-expr.c:7946
0x61e795 trans_code
    /home/jweil/gcc49/trunk/gcc/fortran/trans.c:1623
0x63dee2 gfc_generate_function_code(gfc_namespace*)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-decl.c:5605
0x5de510 translate_all_program_units
    /home/jweil/gcc49/trunk/gcc/fortran/parse.c:4536
0x5de510 gfc_parse_file()
    /home/jweil/gcc49/trunk/gcc/fortran/parse.c:4733
0x61adb5 gfc_be_parse_file
    /home/jweil/gcc49/trunk/gcc/fortran/f95-lang.c:188


  parent reply	other threads:[~2014-01-05 17:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10  7:59 [Bug fortran/55932] New: DDT's default structure constructor does not work with having allocatable member variables stefan.mauerberger at gmail dot com
2013-01-10 10:38 ` [Bug fortran/55932] " dominiq at lps dot ens.fr
2013-01-11 11:50 ` stefan.mauerberger at gmail dot com
2014-01-05 17:40 ` janus at gcc dot gnu.org [this message]
2014-01-05 17:51 ` [Bug fortran/55932] [F03] ICE for structure constructor with scalar allocatable component janus at gcc dot gnu.org
2014-01-05 18:42 ` janus at gcc dot gnu.org
2014-01-09 20:39 ` janus at gcc dot gnu.org
2014-01-09 21:49 ` janus at gcc dot gnu.org
2014-01-10 14:10 ` janus at gcc dot gnu.org
2014-01-10 14:13 ` janus at gcc dot gnu.org
2015-04-17 12:34 ` dominiq at lps dot ens.fr

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-55932-4-KWsdQ4vkaT@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: link
Be 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).