[Bug c++/71516] [5 Regression] ICE on invalid C++ code (invalid use of forward declared type) on x86_64-linux-gnu: Segmentation fault (program cc1plus)

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 7 12:45:00 GMT 2016


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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jul  7 12:44:33 2016
New Revision: 238097

URL: https://gcc.gnu.org/viewcvs?rev=238097&root=gcc&view=rev
Log:
        Backported from mainline
        2016-06-14  Jakub Jelinek  <jakub@redhat.com>

        PR c++/71516
        * decl.c (complete_vars): Handle gracefully type == error_mark_node.

        * g++.dg/init/pr71516.C: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/init/pr71516.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/decl.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list