This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79650] [6/7 Regression] ICE on invalid c++ code with label arithmetic in convert_nontype_argument (pt.c:6515)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Dec 2017 22:14:08 +0000
- Subject: [Bug c++/79650] [6/7 Regression] ICE on invalid c++ code with label arithmetic in convert_nontype_argument (pt.c:6515)
- Auto-submitted: auto-generated
- References: <bug-79650-4@http.gcc.gnu.org/bugzilla/>
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