Implement constexpr variable templates * decl.c (grokvardecl): Handle specializations of variable templates. (grokdeclarator): Handle variable template id expressions and NULL_TREE return from grokvardecl. * decl2.c (check_member_template): Allow declaration of template member variables. * parser.c (cp_parser_template_id): Build a TEMPLATE_ID_EXPR for variable templates. * pt.c (check_template_variable): Accept variable temploids at non-class scope. (push_template_decl_real): The current instantiation of a template can be a VAR_DECL. (determine_specialization): Accept variable templates. (check_explicit_specialization): Handle and check for malformed variable template specializations. (lookup_template_variable): New. (tsubst_decl): Handle variable template specializations. (do_decl_instantiation): Handle template variables. (instantiate_decl): Handle template variables. * semantics.c (finish_template_variable): New. (finish_id_expression): Instantiate variable templates. * cp-tree.h (variable_template_p): New. From-SVN: r213641
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ChangeLog-2005 | Loading commit data... | |
ctor1.C | Loading commit data... | |
delete1.C | Loading commit data... | |
delete2.C | Loading commit data... | |
delete3.C | Loading commit data... | |
delete4.C | Loading commit data... | |
delete5.C | Loading commit data... | |
dwarf1.C | Loading commit data... | |
dwarf2.C | Loading commit data... | |
dwarf3.C | Loading commit data... | |
expr1.C | Loading commit data... | |
expr2.C | Loading commit data... | |
ext1.C | Loading commit data... | |
friend1.C | Loading commit data... | |
inline1.C | Loading commit data... | |
linkage1-main.cc | Loading commit data... | |
linkage1.C | Loading commit data... | |
nameret1.C | Loading commit data... | |
nameret2.C | Loading commit data... | |
new1.C | Loading commit data... | |
ns1.C | Loading commit data... | |
ns2.C | Loading commit data... | |
ns3.C | Loading commit data... | |
overload1.C | Loading commit data... | |
partord1.C | Loading commit data... | |
partspec1.C | Loading commit data... | |
stkalign.C | Loading commit data... | |
template1.C | Loading commit data... | |
template10.C | Loading commit data... | |
template2.C | Loading commit data... | |
template3.C | Loading commit data... | |
template4.C | Loading commit data... | |
template5.C | Loading commit data... | |
template6.C | Loading commit data... | |
template7.C | Loading commit data... | |
template8.C | Loading commit data... | |
template9.C | Loading commit data... | |
thunk1.C | Loading commit data... | |
typename1.C | Loading commit data... | |
typename2.C | Loading commit data... | |
typeof1.C | Loading commit data... |