This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67337] [4.9/5 Regression] Segmentation fault on a template class
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Dec 2015 11:47:10 +0000
- Subject: [Bug c++/67337] [4.9/5 Regression] Segmentation fault on a template class
- Auto-submitted: auto-generated
- References: <bug-67337-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67337
--- Comment #9 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Author: trippels
Date: Fri Dec 4 11:46:39 2015
New Revision: 231258
URL: https://gcc.gnu.org/viewcvs?rev=231258&root=gcc&view=rev
Log:
Fix c++/67337 (segfault in mangle.c)
PR c++/67337
* mangle.c (write_template_prefix): Guard against context==NULL.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/pr67337.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/mangle.c