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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Apr 20 07:56:52 2018
New Revision: 259516

URL: https://gcc.gnu.org/viewcvs?rev=259516&root=gcc&view=rev
Log:
        PR c++/85462
        * cp-tree.h (tinst_level): Remove in_system_header_p member,
        change refcount member from unsigned char to unsigned short,
        add refcount_infinity static data member, adjust comments.
        * pt.c (tinst_level::refcount_infinity): Define.
        (inc_refcount_use): Remove assert, don't increment if refcount
        is already refcount_infinity, adjust comment.
        (dec_refcount_use): Remove assert, don't decrement if refcount
        is refcount_infinity, adjust comment.
        (push_tinst_level_loc): Formatting fix.

        * g++.dg/cpp0x/pr85462.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr85462.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to