This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71193] [7 Regression] error: invalid use of incomplete type


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]