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. From-SVN: r229019
Showing
gcc/testsuite/g++.dg/cpp1z/nontype1.C
0 → 100644
gcc/testsuite/g++.dg/cpp1z/nontype2.C
0 → 100644
gcc/testsuite/g++.dg/cpp1z/nontype3.C
0 → 100644
gcc/testsuite/g++.dg/cpp1z/nontype3a.C
0 → 100644
Please
register
or
sign in
to comment