public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/101624] New: [9/10/11/12 Regression] ICE: tree check: expected tree that contains 'decl with RTL' structure, have 'const_decl' in maybe_optimize_ubsan_ptr_ifn, at sanopt.c:495
@ 2021-07-26 16:42 gscfq@t-online.de
  2021-07-27 11:01 ` [Bug fortran/101624] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gscfq@t-online.de @ 2021-07-26 16:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101624
           Summary: [9/10/11/12 Regression] ICE: tree check: expected tree
                    that contains 'decl with RTL' structure, have
                    'const_decl' in maybe_optimize_ubsan_ptr_ifn, at
                    sanopt.c:495
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r8 (gcc configured with --enable-checking=yes) :


$ cat z1.f90
complex function f(x)
   complex, intent(in) :: x
   f = aimag(x)
end
program p
   complex, parameter :: a = (0.0, 1.0)
   complex :: b, f
   b = f(a)
end


$ gfortran-12-20210725 -c z1.f90 -O2 -fsanitize=undefined
during GIMPLE pass: sanopt
z1.f90:9:3:

    9 | end
      |   ^
internal compiler error: tree check: expected tree that contains 'decl with
RTL' structure, have 'const_decl' in maybe_optimize_ubsan_ptr_ifn, at
sanopt.c:495
0x65f003 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
        ../../gcc/tree.c:8860
0xe6f6ba contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        ../../gcc/tree.h:3487
0xe6f6ba maybe_optimize_ubsan_ptr_ifn
        ../../gcc/sanopt.c:495
0xe6f6ba sanopt_optimize_walker
        ../../gcc/sanopt.c:837
0xe6d807 sanopt_optimize_walker
        ../../gcc/sanopt.c:885
0xe70e06 sanopt_optimize
        ../../gcc/sanopt.c:909
0xe70e06 execute
        ../../gcc/sanopt.c:1279

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

end of thread, other threads:[~2022-05-11  6:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 16:42 [Bug fortran/101624] New: [9/10/11/12 Regression] ICE: tree check: expected tree that contains 'decl with RTL' structure, have 'const_decl' in maybe_optimize_ubsan_ptr_ifn, at sanopt.c:495 gscfq@t-online.de
2021-07-27 11:01 ` [Bug fortran/101624] " rguenth at gcc dot gnu.org
2021-07-27 17:01 ` jakub at gcc dot gnu.org
2021-07-27 18:19 ` [Bug middle-end/101624] " jakub at gcc dot gnu.org
2021-07-28 16:43 ` cvs-commit at gcc dot gnu.org
2021-07-28 16:46 ` [Bug middle-end/101624] [9/10/11 " jakub at gcc dot gnu.org
2021-08-12 22:54 ` cvs-commit at gcc dot gnu.org
2021-08-12 22:56 ` [Bug middle-end/101624] [9/10 " jakub at gcc dot gnu.org
2022-05-10  8:20 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:22 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:36 ` jakub 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).