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++/72759] [6/7 Regression] ICE on invalid C++ code on x86_64-linux-gnu (Segmentation fault, tree_class_check, ocp_convert)


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

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Thu Aug  4 19:14:32 2016
New Revision: 239147

URL: https://gcc.gnu.org/viewcvs?rev=239147&root=gcc&view=rev
Log:
Fix ICE on invalid variable template instantiation (PR c++/72759)

gcc/cp/ChangeLog:

        PR c++/72759
        * pt.c (tsubst_qualified_id): Return error_mark_node if
        template_args is error_mark_node.

gcc/testsuite/ChangeLog:

        PR c++/72759
        * g++.dg/cpp1y/pr72759.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr72759.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog

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