Commit a6965b65 by Paolo Carlini Committed by Paolo Carlini

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
parent 6e939407
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>
PR c++/60771
* g++.dg/cpp0x/constexpr-ref6.C: New.
......
// 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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment