diff options
Diffstat (limited to 'clang/test/SemaTemplate/rdar9173693.cpp')
-rw-r--r-- | clang/test/SemaTemplate/rdar9173693.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/rdar9173693.cpp b/clang/test/SemaTemplate/rdar9173693.cpp index 86b49545a30..ed09a64a0dd 100644 --- a/clang/test/SemaTemplate/rdar9173693.cpp +++ b/clang/test/SemaTemplate/rdar9173693.cpp @@ -2,5 +2,8 @@ // <rdar://problem/9173693> template< bool C > struct assert { }; -template< bool > struct assert_arg_pred_impl { }; // expected-note 3 {{declared here}} -template< typename Pred > assert<false> assert_not_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type ); // expected-error 5 {{}} +// FIXME: We diagnose the same problem multiple times here because we have no +// way to indicate in the token stream that we already tried to annotate a +// template-id and we failed. +template< bool > struct assert_arg_pred_impl { }; // expected-note 4 {{declared here}} +template< typename Pred > assert<false> assert_not_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type ); // expected-error 6 {{}} |