PR c++/71193 - incomplete types in templates
authorJason Merrill <jason@redhat.com>
Mon, 6 Feb 2017 21:12:13 +0000 (16:12 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 6 Feb 2017 21:12:13 +0000 (16:12 -0500)
commit44a6da7bac79f288af814cd401a666c81fb8735c
tree4cbfd8e8e59100224d7526f61ef5a0a997da535c
parent391675acd2d18d0b6e5130a4105cf66eb1664683
PR c++/71193 - incomplete types in templates

* parser.c (cp_parser_postfix_dot_deref_expression): In a template
handle incomplete type by pedwarning and then treating as dependent.

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