[Bug c++/79650] [6 Regression] ICE on invalid c++ code with label arithmetic in convert_nontype_argument (pt.c:6515)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:02:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79650
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:01:10 2018
New Revision: 262045
URL: https://gcc.gnu.org/viewcvs?rev=262045&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-6-branch/gcc/testsuite/g++.dg/template/pr79650.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/pt.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list