re PR c++/79435 (ICE on invalid C++ code (with member access into an incomplete type...
authorMarek Polacek <polacek@redhat.com>
Fri, 10 Feb 2017 16:32:19 +0000 (16:32 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 10 Feb 2017 16:32:19 +0000 (16:32 +0000)
commit6f4f30bf3142fe3454345be587b373aa457078d3
tree3f0ced92601fc57e4a20ae38ffb0506283a6b3a8
parent67afc9a696110263bb48b3ed55814b4593fe5e2b
re PR c++/79435 (ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault)

PR c++/79435
* pt.c (type_dependent_expression_p): Check if the expression type
is null.

* g++.dg/cpp1y/pr79435.C: New.

From-SVN: r245334
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr79435.C [new file with mode: 0644]