re PR c++/54090 (internal compiler error: in unify, at cp/pt.c:15731)
2017-10-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54090 * g++.dg/template/crash128.C: New. From-SVN: r253772
This commit is contained in:
parent
c53c148c91
commit
4dcfe21f16
2 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
19
gcc/testsuite/g++.dg/template/crash128.C
Normal file
19
gcc/testsuite/g++.dg/template/crash128.C
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
||||
}
|
Loading…
Add table
Reference in a new issue