re PR c++/64647 ([C++14] std::__max_element contains code not allowed in constexpr...
authorJason Merrill <jason@redhat.com>
Wed, 21 Jan 2015 20:15:35 +0000 (15:15 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 21 Jan 2015 20:15:35 +0000 (15:15 -0500)
commitf1eac182405b9540c9ddecc9d72459fe82aa3f61
treefdd7f4713bdc6f43894c0056c5ed80b763e82ab5
parent6875457f349eebb3d13d780e909b131bfff87e16
re PR c++/64647 ([C++14] std::__max_element contains code not allowed in constexpr function)

PR c++/64647
* constexpr.c (ensure_literal_type_for_constexpr_object): Don't
give a hard error in a template instantiation.

From-SVN: r219965
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-local3.C [new file with mode: 0644]