public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67409] New: tree-cfg.c dereferences a NULL pointer
@ 2015-08-31 14:26 zeccav at gmail dot com
  2015-08-31 14:44 ` [Bug middle-end/67409] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zeccav at gmail dot com @ 2015-08-31 14:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67409
           Summary: tree-cfg.c dereferences a NULL pointer
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

//g++ 5.2.0 sanitizer detects dereferencing a NULL pointer 
//gcc-5.2.0/gcc/tree-cfg.c:1342:38: runtime error: member access within null
pointer of type 'struct basic_block_def'
//must be compiled with -fpermissive
//pointer bb is null
//source line "tree main_label = label_for_bb[bb->index].label;"
//double check with "gcc_assert(bb);" immediately before
//Target: x86_64-unknown-linux-gnu
void f()
try
  {
    goto l2;
  } catch (...)
  {
  l2:;
  }


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

end of thread, other threads:[~2015-09-01 11:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-31 14:26 [Bug c++/67409] New: tree-cfg.c dereferences a NULL pointer zeccav at gmail dot com
2015-08-31 14:44 ` [Bug middle-end/67409] " mpolacek at gcc dot gnu.org
2015-09-01  8:39 ` [Bug middle-end/67409] [5/6 Regression] " rguenth at gcc dot gnu.org
2015-09-01  8:46 ` mpolacek at gcc dot gnu.org
2015-09-01  8:51 ` [Bug c++/67409] " mpolacek at gcc dot gnu.org
2015-09-01 11:06 ` paolo.carlini at oracle 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).