This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/63283] constexpr function called by templated function is not treated as constexpr
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Jan 2015 20:46:36 +0000
- Subject: [Bug c++/63283] constexpr function called by templated function is not treated as constexpr
- Auto-submitted: auto-generated
- References: <bug-63283-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63283
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jan 15 20:46:03 2015
New Revision: 219686
URL: https://gcc.gnu.org/viewcvs?rev=219686&root=gcc&view=rev
Log:
PR c++/63283
* constexpr.c (potential_constant_expression_1): Handle reference
args in templates.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-template8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/g++.dg/cpp0x/static_assert10.C