public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101515] New: [11/12 Regression] ICE in pp_cxx_unqualified_id, at cp/cxx-pretty-print.c:128
@ 2021-07-19 17:27 gscfq@t-online.de
  2021-07-19 17:31 ` [Bug tree-optimization/101515] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: gscfq@t-online.de @ 2021-07-19 17:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101515
           Summary: [11/12 Regression] ICE in pp_cxx_unqualified_id, at
                    cp/cxx-pretty-print.c:128
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20210110 and 20210117 :


$ cat z1.cc
struct S
{
  int j;
};
struct T : public S
{
  virtual void h () {}
};
struct ptrmemfunc
{
  void (*ptr) ();
};
typedef void (S::*sp)();
int main ()
{
  T t;
  sp x;
  ptrmemfunc *xp = (ptrmemfunc *) &x;
  if (xp->ptr != ((void (*)())(sizeof(void *))))
    return 1;
}


$ g++-12-20210718 -c z1.cc -O0 -Wall
$
$ g++-12-20210718 -c z1.cc -O1 -Wall
'
during GIMPLE pass: uninit
In function 'int main()':
Segmentation fault
   14 | int main ()
      |     ^~~~
0xd6d5af crash_signal
        ../../gcc/toplev.c:328
0x7389fc pp_cxx_unqualified_id
        ../../gcc/cp/cxx-pretty-print.c:128
0x738c48 pp_cxx_unqualified_id
        ../../gcc/cp/cxx-pretty-print.c:174
0x738ef7 pp_cxx_nested_name_specifier
        ../../gcc/cp/cxx-pretty-print.c:254
0x7395cb pp_cxx_qualified_id
        ../../gcc/cp/cxx-pretty-print.c:303
0x8f2e12 print_mem_ref
        ../../gcc/c-family/c-pretty-print.c:2079
0x76b79d dump_expr
        ../../gcc/cp/error.c:2403
0x76eb15 expr_to_string(tree_node*)
        ../../gcc/cp/error.c:3224
0x76f2fc cp_printer
        ../../gcc/cp/error.c:4390
0x1770e9e pp_format(pretty_printer*, text_info*)
        ../../gcc/pretty-print.c:1475
0x1764d54 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../gcc/diagnostic.c:1331
0x176530a diagnostic_impl
        ../../gcc/diagnostic.c:1493
0x1765862 warning_at(unsigned int, int, char const*, ...)
        ../../gcc/diagnostic.c:1630
0xf4cf15 maybe_warn_operand
        ../../gcc/tree-ssa-uninit.c:446
0xf50ece warn_uninitialized_vars
        ../../gcc/tree-ssa-uninit.c:688
0xf55b23 execute
        ../../gcc/tree-ssa-uninit.c:3053

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

end of thread, other threads:[~2022-03-30  8:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19 17:27 [Bug c++/101515] New: [11/12 Regression] ICE in pp_cxx_unqualified_id, at cp/cxx-pretty-print.c:128 gscfq@t-online.de
2021-07-19 17:31 ` [Bug tree-optimization/101515] " pinskia at gcc dot gnu.org
2021-07-22 13:13 ` [Bug tree-optimization/101515] [11/12 Regression] ICE in pp_cxx_unqualified_id, at cp/cxx-pretty-print.c:128 since r11-6729-gadb520606ce3e1e1 marxin at gcc dot gnu.org
2021-07-28  7:07 ` rguenth at gcc dot gnu.org
2022-01-17 14:00 ` rguenth at gcc dot gnu.org
2022-02-04 21:53 ` qinzhao at gcc dot gnu.org
2022-02-07 21:14 ` qinzhao at gcc dot gnu.org
2022-02-07 21:17 ` qinzhao at gcc dot gnu.org
2022-02-10 21:58 ` qinzhao at gcc dot gnu.org
2022-03-19  7:42 ` cvs-commit at gcc dot gnu.org
2022-03-19  7:43 ` [Bug tree-optimization/101515] [11 " jakub at gcc dot gnu.org
2022-03-29  5:54 ` cvs-commit at gcc dot gnu.org
2022-03-30  8:16 ` 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).