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++/79650] [6/7 Regression] ICE on invalid c++ code with label arithmetic in convert_nontype_argument (pt.c:6515)


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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 15 22:13:37 2017
New Revision: 255727

URL: https://gcc.gnu.org/viewcvs?rev=255727&root=gcc&view=rev
Log:
        Backported from mainline
        2017-12-14  Jakub Jelinek  <jakub@redhat.com>

        PR c++/79650
        * pt.c (convert_nontype_argument): Diagnose
        reduced_constant_expression_p expressions that aren't INTEGER_CST.

        * g++.dg/template/pr79650.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/template/pr79650.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/pt.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

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