]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/79650 (ICE on invalid c++ code with label arithmetic in convert_nontype_arg...
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Dec 2017 08:16:51 +0000 (09:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Dec 2017 08:16:51 +0000 (09:16 +0100)
commit9096c2c543f9d47822cc086ff1cfb21767d6a1b4
treef6ea02203975b48999f3b4b4b7be57c3698df521
parent606778c6f55c4df1f247097f4b73d2c551ff4889
re PR c++/79650 (ICE on invalid c++ code with label arithmetic in convert_nontype_argument (pt.c:6515))

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.

From-SVN: r255623
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr79650.C [new file with mode: 0644]