re PR c++/65127 (internal compiler error: tree check: expected tree that contains...
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Mar 2015 19:10:43 +0000 (20:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Mar 2015 19:10:43 +0000 (20:10 +0100)
commit704c79040af06477eaa18ee560270f22214a359a
tree51bc9fc082d586c29d0154b2c033b978184d6529
parent1574ecc09cc471c9461abcfe467dfd3b4e8daf96
re PR c++/65127 (internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'addr_expr' in parsing_nsdmi, at cp/parser.c:18311)

PR c++/65127
* parser.c (parsing_nsdmi): Don't return true if current_class_ptr
is not a PARM_DECL.

* g++.dg/cpp0x/pr65127.C: New test.

From-SVN: r221332
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr65127.C [new file with mode: 0644]