2017-05-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/67687
* g++.dg/cpp0x/constexpr-ice17.C: New.
From-SVN: r247964
+2017-05-12 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/67687
+ * g++.dg/cpp0x/constexpr-ice17.C: New.
+
2017-05-12 Richard Biener <rguenther@suse.de>
PR tree-optimization/80713
--- /dev/null
+// PR c++/67687
+// { dg-do compile { target c++11 } }
+
+template <unsigned int Coordinate>
+struct dimension{
+ template<typename ... T>
+ constexpr dimension(T...){}
+};
+
+struct accessor_base{
+ template<typename ... T>
+ constexpr accessor_base(T...){}
+};
+
+template <typename ArgType, typename Pair>
+struct accessor_mixed{
+
+private:
+ static constexpr accessor_base s_args_constexpr{dimension<Pair::first>{0} };
+};