This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/69412] bootstrap-ubsan profiledbootstrap issues
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 30 Apr 2016 13:26:36 +0000
- Subject: [Bug other/69412] bootstrap-ubsan profiledbootstrap issues
- Auto-submitted: auto-generated
- References: <bug-69412-4 at http dot gcc dot gnu dot org/bugzilla/>
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;
};