public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61881] New: ICE in gfc_conv_intrinsic_to_class with assumed-rank CLASS(*)
@ 2014-07-22 15:39 burnus at gcc dot gnu.org
  2014-07-22 18:09 ` [Bug fortran/61881] " dominiq at lps dot ens.fr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-07-22 15:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61881

            Bug ID: 61881
           Summary: ICE in gfc_conv_intrinsic_to_class with assumed-rank
                    CLASS(*)
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: pault at gcc dot gnu.org

The following code uses assumed-rank and CLASS(*) and ICEs. Such a code might
get used for GCC's OpenACC implementation.


foo.f90:3:0: internal compiler error: in fold_convert_loc, at fold-const.c:2074
 call test(4)
 ^
0x87556c fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.c:2074
0x69f570 gfc_conv_intrinsic_to_class(gfc_se*, gfc_expr*, gfc_typespec)
        ../../gcc/fortran/trans-expr.c:592



program test
  implicit none
  call test(4)
  call test([4])
contains
  subroutine test(a)
    class(*), dimension(..) :: a
  end subroutine test
end


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-03  6:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-22 15:39 [Bug fortran/61881] New: ICE in gfc_conv_intrinsic_to_class with assumed-rank CLASS(*) burnus at gcc dot gnu.org
2014-07-22 18:09 ` [Bug fortran/61881] " dominiq at lps dot ens.fr
2014-07-23  6:26 ` burnus at gcc dot gnu.org
2014-07-23  6:40 ` burnus at gcc dot gnu.org
2014-07-26 17:57 ` burnus at gcc dot gnu.org
2014-07-26 18:00 ` burnus at gcc dot gnu.org
2014-09-03  6:42 ` burnus at gcc dot gnu.org

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).