This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/64647] [5 Regression] [C++14] std::__max_element contains code not allowed in constexpr function


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64647

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jan 21 20:15:35 2015
New Revision: 219965

URL: https://gcc.gnu.org/viewcvs?rev=219965&root=gcc&view=rev
Log:
    PR c++/64647
    * constexpr.c (ensure_literal_type_for_constexpr_object): Don't
    give a hard error in a template instantiation.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-local3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]