[Bug c++/71193] [7 Regression] error: invalid use of incomplete type
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 6 21:12:00 GMT 2017
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
More information about the Gcc-bugs
mailing list