]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
Implement N4268, Do constant evaluation of all non-type template args.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Oct 2015 02:48:51 +0000 (02:48 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Oct 2015 02:48:51 +0000 (02:48 +0000)
commita36e5e5ee5c0e7ce7d5db356f4bfb8adfe7cebe8
treece34d7922020e02b9e9d7346c70ded9a6f9f13c7
parentf16ed232f63165d926986d482708ebf464a04108
Implement N4268, Do constant evaluation of all non-type template args.

gcc/c-family/
* c-cppbuiltin.c (c_cpp_builtins): Define
__cpp_nontype_template_args.
gcc/cp/
* parser.c (cp_parser_template_argument): For C++1z just parse a
constant-expression.
* pt.c (convert_nontype_argument): For C++1z always call
maybe_constant_value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229019 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/nontype1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/nontype2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/nontype3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/nontype3a.C [new file with mode: 0644]