This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/69412] bootstrap-ubsan profiledbootstrap issues


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

--- Comment #4 from Vittorio Zecca <zeccav at gmail dot com> ---
A reproducer for the parser.c runtime error

/* gcc-6.1.0-undefined/bin/g++      -I../../gcc-6.1.0/gcc/.
-I../../gcc-6.1.0/gcc/../include -I../../gcc-6.1.0/gcc/../libcpp/include  p.c
-S -I. */
/* ../../gcc-6.1.0/gcc/cp/parser.c:765:7: runtime error: member call on null
pointer of type 'struct vec' */
/* must be compiled in gcc-6.1.0/gcc directory */

#include "config.h"
#include "system.h"
#include "coretypes.h"

template <class T>
class function_summary {};

template <class T>
class function_summary <T *>
{

  template<typename Arg, bool (*f)(const T &, Arg)>
  void traverse (Arg a) const
  {
   m_map.traverse <f> (a);/* HERE */
  }

  typedef int_hash <int, 0, -1> map_hash;

  hash_map <map_hash, T *> m_map;

};

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]