This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71193] [7 Regression] error: invalid use of incomplete type
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Feb 2017 21:12:45 +0000
- Subject: [Bug c++/71193] [7 Regression] error: invalid use of incomplete type
- Auto-submitted: auto-generated
- References: <bug-71193-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71193
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Feb 6 21:12:13 2017
New Revision: 245223
URL: https://gcc.gnu.org/viewcvs?rev=245223&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/template/incomplete8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c