https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67702
Nick Clifton <nickc at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickc at redhat dot com --- Comment #3 from Nick Clifton <nickc at redhat dot com> --- Created attachment 36826 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36826&action=edit Workaround This patch avoids the problem. Not sure if it is the correct fix though. There is a comment in mangle.c:decl_mangling_context() which says "template type parms have no mangling context." and it is this which is causing write_template_prefix() to crash - it assumes that there is always a context available. But maybe template type parameters should never be passed to template_write_prefix ?