re PR c++/84925 (ICE with segfault in __PRETTY_FUNCTION__)
authorMarek Polacek <polacek@redhat.com>
Mon, 19 Mar 2018 20:34:45 +0000 (20:34 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 19 Mar 2018 20:34:45 +0000 (20:34 +0000)
commite5cc0d5453f3a79902522c719fe4fd5765b689b3
tree6d0f0ff93ae13c9b645ddebb9619ad8029fc1cbc
parent809c28c8dd3c8827ab64147994c2b57a91b09f7b
re PR c++/84925 (ICE with segfault in __PRETTY_FUNCTION__)

PR c++/84925
* pt.c (enclosing_instantiation_of): Check if fn is null.

* g++.dg/cpp1z/lambda-__func__.C: New test.

From-SVN: r258660
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/lambda-__func__.C [new file with mode: 0644]