[Bug c++/70540] [4.9/5/6 Regression] ICE on invalid code in cxx_incomplete_type_diagnostic, at cp/typeck2.c:569

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 28 09:59:00 GMT 2016


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

--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Apr 28 09:58:45 2016
New Revision: 235552

URL: https://gcc.gnu.org/viewcvs?rev=235552&root=gcc&view=rev
Log:
/cp
2016-04-28  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/70540
        * semantics.c (process_outer_var_ref): Unconditionally return
        error_mark_node when mark_used returns false.

/testsuite
2016-04-28  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/70540
        * g++.dg/cpp0x/auto48.C: New.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/auto48.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/semantics.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list