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++/84138] [8 Regression] ICE folding broken constant


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jan 31 15:37:18 2018
New Revision: 257240

URL: https://gcc.gnu.org/viewcvs?rev=257240&root=gcc&view=rev
Log:
        PR c++/84138
        * cp-gimplify.c (cp_fold): Check if X is an error node before
        calling useless_type_conversion_p.

        * g++.dg/diagnostic/pr84138.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/diagnostic/pr84138.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-gimplify.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]