re PR c++/60245 (function with using defined parameter not accepted as constexpr parameter)

2014-11-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60245
	* g++.dg/cpp0x/constexpr-60245.C: New.

From-SVN: r217709
This commit is contained in:
Paolo Carlini 2014-11-18 11:57:16 +00:00 committed by Paolo Carlini
parent 6e9394078a
commit a6965b6517
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60245
* g++.dg/cpp0x/constexpr-60245.C: New.
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com> 2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60771 PR c++/60771

View File

@ -0,0 +1,8 @@
// PR c++/60245
// { dg-do compile { target c++11 } }
constexpr int Apply(const int in, int (*f)(const int&)) { return f(in); }
using Foo = int;
static constexpr int id(const Foo& i) { return i; }
static constexpr int results1 = Apply(0, &id);