public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tiloschwarz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/57033] New: ICE on extended derived type and default initialization
Date: Mon, 22 Apr 2013 16:04:00 -0000	[thread overview]
Message-ID: <bug-57033-4@http.gcc.gnu.org/bugzilla/> (raw)


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

             Bug #: 57033
           Summary: ICE on extended derived type and default
                    initialization
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tiloschwarz@gcc.gnu.org


Hi,

with this program

-----------------
program ice

type m
    integer i
    logical :: f = .false.
end type m

type, extends(m) :: me
end type me

type(me) meo

meo = me(1)              ! ICE
!meo = me(1, .false.)    ! does work

end program ice
-----------------

I get:

gfortran-4.4: No ICE
gfortran-4.6: No ICE
gfortran-4.7: ICE
gfortran-4.8: ICE
gfortran-4.9: ICE

Detailed messages from gfortran 4.9.0 20130422 (experimental) (GCC):

./gfortran /home/tschwarz/Developer/Fortran/ice.f95  -B
../i686-pc-linux-gnu/libgfortran -B ../gcc -L
../i686-pc-linux-gnu/libgfortran/.libs -L
../i686-pc-linux-gnu/libquadmath/.libs -v
Driving: ./gfortran /home/tschwarz/Developer/Fortran/ice.f95 -B
../i686-pc-linux-gnu/libgfortran -B ../gcc -L
../i686-pc-linux-gnu/libgfortran/.libs -L
../i686-pc-linux-gnu/libquadmath/.libs -v -l gfortran -l m -shared-libgcc
Reading specs from ../gcc/specs
COLLECT_GCC=./gfortran
COLLECT_LTO_WRAPPER=../gcc/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --disable-multilib --enable-languages=fortran
--disable-bootstrap : (reconfigured) ../configure --disable-multilib
--enable-languages=fortran --disable-bootstrap : (reconfigured) ../configure
--disable-multilib --disable-bootstrap --enable-languages=c,fortran,lto
--no-create --no-recursion : (reconfigured) ../configure --disable-multilib
--disable-bootstrap --enable-languages=c,fortran,lto --no-create --no-recursion
Thread model: posix
gcc version 4.9.0 20130422 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-B' '../i686-pc-linux-gnu/libgfortran' '-B' '../gcc'
'-L../i686-pc-linux-gnu/libgfortran/.libs'
'-L../i686-pc-linux-gnu/libquadmath/.libs' '-v' '-shared-libgcc'
'-mtune=generic' '-march=pentiumpro'
 ../gcc/f951 /home/tschwarz/Developer/Fortran/ice.f95 -quiet -dumpbase ice.f95
-mtune=generic -march=pentiumpro -auxbase ice -version -fintrinsic-modules-path
finclude -o /tmp/ccRAlX1p.s
GNU Fortran (GCC) version 4.9.0 20130422 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version
3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran (GCC) version 4.9.0 20130422 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version
3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
f951: internal compiler error: Segmentation fault
0x85fa860 crash_signal
        ../../gcc/toplev.c:332
0x81b24ac gfc_convert_to_structure_constructor(gfc_expr*, gfc_symbol*,
gfc_expr**, gfc_actual_arglist**, bool)
        ../../gcc/fortran/primary.c:2543
0x81bef6e resolve_generic_f
        ../../gcc/fortran/resolve.c:2463
0x81bef6e resolve_function
        ../../gcc/fortran/resolve.c:2809
0x81bef6e gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:5990
0x81c5f8e resolve_code
        ../../gcc/fortran/resolve.c:9588
0x81c8bb9 resolve_codes
        ../../gcc/fortran/resolve.c:14466
0x81b8d3c gfc_resolve
        ../../gcc/fortran/resolve.c:14494
0x81b8d3c gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:14480
0x81ae500 resolve_all_program_units
        ../../gcc/fortran/parse.c:4402
0x81ae500 gfc_parse_file()
        ../../gcc/fortran/parse.c:4651
0x81ec58a gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:189
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


Regards,
Tilo


             reply	other threads:[~2013-04-22 16:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22 16:04 tiloschwarz at gcc dot gnu.org [this message]
2013-04-22 16:13 ` [Bug fortran/57033] [4.7/4.8/4.9 Regression] " dominiq at lps dot ens.fr
2013-04-22 16:31 ` burnus at gcc dot gnu.org
2013-10-25 12:59 ` rguenth at gcc dot gnu.org
2014-01-06 22:32 ` dominiq at lps dot ens.fr
2014-01-26 16:28 ` mikael at gcc dot gnu.org
2014-02-02 11:51 ` mikael at gcc dot gnu.org
2014-02-04 14:01 ` mikael at gcc dot gnu.org
2014-02-08 20:38 ` mikael at gcc dot gnu.org
2014-02-08 20:51 ` mikael at gcc dot gnu.org
2014-02-08 21:04 ` mikael 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-57033-4@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).