PR c++/60245
* g++.dg/cpp0x/constexpr-60245.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217709
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
--- /dev/null
+// 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);