]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/constexpr.c
Fix template/ref1.C, nontype15.C, addr-builtin1.C with -std=c++1z.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Dec 2015 04:34:57 +0000 (04:34 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Dec 2015 04:34:57 +0000 (04:34 +0000)
commiteade09407b56c698678b558de266c72b5c43e85d
treebf18eed02d681288b0f674e475652125572c8032
parent6751468262e5ad53fcef9e5a5e21d43566d5e704
Fix template/ref1.C, nontype15.C, addr-builtin1.C with -std=c++1z.

* parser.c (cp_parser_template_argument): Handle references in
C++1z mode.
* constexpr.c (potential_constant_expression_1): Don't error about
TREE_THIS_VOLATILE on declarations.
[COMPONENT_REF]: Don't consider the object if we're dealing with an
overloaded function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231351 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/parser.c
gcc/testsuite/g++.dg/template/nontype8.C