Fix c++/67337 (segfault in mangle.c)
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Wed, 2 Dec 2015 19:57:55 +0000 (19:57 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Wed, 2 Dec 2015 19:57:55 +0000 (19:57 +0000)
commite7fc41a776a1e85fd052fc84184618768274a1af
tree966f1ad320883735aa2c30fdd61f16111dd2bacc
parent157bb85d48034bba6eb24f6f9f4ca4e6e8a5fa93
Fix c++/67337 (segfault in mangle.c)

PR c++/67337
* mangle.c (write_template_prefix): Guard against context==NULL.

From-SVN: r231203
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/testsuite/g++.dg/template/pr67337.C [new file with mode: 0644]