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; };