re PR c++/84082 (ICE with broken template function definition)
authorJakub Jelinek <jakub@redhat.com>
Wed, 7 Feb 2018 22:30:51 +0000 (23:30 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 Feb 2018 22:30:51 +0000 (23:30 +0100)
commit8f1f526b9a5b0bd27422b3392f1930f107809675
treeec9d7e17e0ff636bc59c4d7ddabaafc047ab0a62
parentb35a0ccd139f5df8262ef7ea5fed81d88074ecf8
re PR c++/84082 (ICE with broken template function definition)

PR c++/84082
* parser.c (cp_parser_dot_deref_incomplete): New function.
(cp_parser_postfix_dot_deref_expression): Use it.

* g++.dg/template/incomplete11.C: New test.
* g++.dg/parse/crash67.C: Expect an incomplete type diagnostics too.

From-SVN: r257466
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash67.C
gcc/testsuite/g++.dg/template/incomplete11.C [new file with mode: 0644]