PR c++/71193 - incomplete types in templates
commitbd2417ed9ce16f71e69dbfd34b44a31ad6b53c23
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Feb 2017 21:12:13 +0000 (6 21:12 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Feb 2017 21:12:13 +0000 (6 21:12 +0000)
tree4cbfd8e8e59100224d7526f61ef5a0a997da535c
parent985308fab339df644e4cb69db0a9bad13ba17e29
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245223 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/template/incomplete8.C [new file with mode: 0644]