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++/64547] A non-const constexpr function is rejected incorrectly


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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jan 12 14:15:07 2015
New Revision: 219466

URL: https://gcc.gnu.org/viewcvs?rev=219466&root=gcc&view=rev
Log:
    PR c++/64547
    * constexpr.c (cxx_eval_call_expression): A call to a void
    function doesn't need to return a value.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-void2.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]