Skip to content
Snippets Groups Projects
Commit 6ff6cfe6 authored by Richard Smith's avatar Richard Smith
Browse files

Halve template depth in an attempt to get this test passing on mingw32.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159917 91177308-0d34-0410-b5e6-96231b3b80d8
parent 6994bb61
No related branches found
No related tags found
No related merge requests found
// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-depth 512 -ftemplate-backtrace-limit 4 %s
// XFAIL: mingw32
// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-depth 256 -ftemplate-backtrace-limit 4 %s
template<int N> struct S {
typedef typename S<N-1>::type type;
static int f(int n = S<N-1>::f()); // \
// expected-error{{recursive template instantiation exceeded maximum depth of 512}} \
// expected-error{{recursive template instantiation exceeded maximum depth of 256}} \
// expected-note 3 {{instantiation of default function argument}} \
// expected-note {{skipping 509 contexts in backtrace}} \
// expected-note {{skipping 253 contexts in backtrace}} \
// expected-note {{use -ftemplate-depth=N to increase recursive template instantiation depth}}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment