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++/83974] [8 Regression] ICE in cxx_eval_constant_expression


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

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Tue Jan 23 21:19:09 2018
New Revision: 256999

URL: https://gcc.gnu.org/viewcvs?rev=256999&root=gcc&view=rev
Log:
C++: Fix ICE in fold_for_warn on CAST_EXPR (PR c++/83974)

gcc/cp/ChangeLog:
        PR c++/83974
        * pt.c (tsubst_copy_and_build) <CONSTRUCTOR>: Remove early bailout
        for pointer to member function types.

gcc/testsuite/ChangeLog:
        PR c++/83974
        * g++.dg/warn/pr83974.C: New test case.


Added:
    trunk/gcc/testsuite/g++.dg/warn/pr83974.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]