public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102796] New: [12 Regresson] ICE in useless_type_conversion_p at gcc/gimple-expr.c:87 since r12-4443-g93ac832f1846e4867aa6537f76f510fab8e3e87d
@ 2021-10-16  9:41 marxin at gcc dot gnu.org
  2021-10-16  9:41 ` [Bug tree-optimization/102796] " marxin at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-16  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102796
           Summary: [12 Regresson] ICE in useless_type_conversion_p at
                    gcc/gimple-expr.c:87 since
                    r12-4443-g93ac832f1846e4867aa6537f76f510fab8e3e87d
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: aldyh at gcc dot gnu.org, amacleod at redhat dot com
  Target Milestone: ---

The following fails:

$ cat /home/marxin/Programming/testcases/ice.cpp
namespace std {
template <class _E>
struct initializer_list {
  const int* __begin_;
  decltype(sizeof(int)) __size_;
};
}  // namespace std
struct destroyme1 {};
struct witharg1 {
  witharg1(const destroyme1&);
  ~witharg1();
};
std::initializer_list globalInitList2 = {witharg1(destroyme1()),
                                         witharg1(destroyme1())};

$ ./xg++ -B. /home/marxin/Programming/testcases/ice.cpp -fno-tree-ccp
-fno-tree-fre -fno-tree-forwprop -O3 -c
during GIMPLE pass: evrp
/home/marxin/Programming/testcases/ice.cpp: In function ‘void
__static_initialization_and_destruction_0(int, int)’:
/home/marxin/Programming/testcases/ice.cpp:14:65: internal compiler error: tree
check: expected class ‘type’, have ‘exceptional’ (error_mark) in
useless_type_conversion_p, at gimple-expr.c:87
   14 |                                          witharg1(destroyme1())};
      |                                                                 ^
0x178e0aa tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        /home/marxin/Programming/gcc/gcc/tree.c:8739
0x90f81e tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        /home/marxin/Programming/gcc/gcc/tree.h:3556
0x90f81e useless_type_conversion_p(tree_node*, tree_node*)
        /home/marxin/Programming/gcc/gcc/gimple-expr.c:87
0x149498c verify_gimple_phi
        /home/marxin/Programming/gcc/gcc/tree-cfg.c:5128
0x149498c verify_gimple_in_cfg(function*, bool)
        /home/marxin/Programming/gcc/gcc/tree-cfg.c:5457
0x1356421 execute_function_todo
        /home/marxin/Programming/gcc/gcc/passes.c:2042
0x1355229 do_per_function
        /home/marxin/Programming/gcc/gcc/passes.c:1687
0x1356654 execute_todo
        /home/marxin/Programming/gcc/gcc/passes.c:2096
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

And it also blocks bootstrap (fails in libgo).

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

end of thread, other threads:[~2021-10-18 22:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-16  9:41 [Bug tree-optimization/102796] New: [12 Regresson] ICE in useless_type_conversion_p at gcc/gimple-expr.c:87 since r12-4443-g93ac832f1846e4867aa6537f76f510fab8e3e87d marxin at gcc dot gnu.org
2021-10-16  9:41 ` [Bug tree-optimization/102796] " marxin at gcc dot gnu.org
2021-10-16 14:03 ` marxin at gcc dot gnu.org
2021-10-16 14:03 ` marxin at gcc dot gnu.org
2021-10-16 15:21 ` hjl.tools at gmail dot com
2021-10-18  7:23 ` clyon at gcc dot gnu.org
2021-10-18 15:03 ` pinskia at gcc dot gnu.org
2021-10-18 17:55 ` amacleod at redhat dot com
2021-10-18 20:55 ` hjl.tools at gmail dot com
2021-10-18 22:02 ` cvs-commit at gcc dot gnu.org
2021-10-18 22:06 ` amacleod at redhat dot com

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