https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84082

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Mar  3 13:26:52 2018
New Revision: 258185

URL: https://gcc.gnu.org/viewcvs?rev=258185&root=gcc&view=rev
Log:
        Backported from mainline
        2018-02-07  Jakub Jelinek  <ja...@redhat.com>

        PR c++/84082
        * parser.c (cp_parser_dot_deref_incomplete): New function.
        (cp_parser_postfix_dot_deref_expression): Use it.

        * g++.dg/template/incomplete11.C: New test.
        * g++.dg/parse/crash67.C: Expect an incomplete type diagnostics too.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/template/incomplete11.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/parser.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/g++.dg/parse/crash67.C

Reply via email to