2017-10-15 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54090
* g++.dg/template/crash128.C: New.
From-SVN: r253772
+2017-10-15 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/54090
+ * g++.dg/template/crash128.C: New.
+
2017-10-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/82372
--- /dev/null
+// PR c++/54090
+
+template <int n>
+struct X {
+
+ template <int N, bool = (n >= N), typename T = void> struct Y;
+
+ template <int N, typename T>
+ struct Y<N, true, T> {};
+
+ static const int M = n / 2;
+
+ template <typename T>
+ struct Y<X::M, true, T> {};
+};
+
+void foo() {
+ X<10>::Y<10/2> y;
+}