1 // RUN: %clang_cc1 %s -fsyntax-only -verify -std=c++11
3 // Test reproduces a pair of crashes that were caused by code attempting
4 // to materialize a default constructor's exception specifier.
6 template <class T
> struct A
{
9 const int M
= UNDEFINED
; // expected-error {{use of undeclared identifier}}
19 template <class T
> struct B
{
22 // expected-error@+1 {{invalid application of 'sizeof' to an incomplete type}}
23 const int N
= sizeof(B
<char>::tab
) / sizeof(char);
33 // This test checks for a crash that resulted from us miscomputing the
34 // dependence of a nested initializer list.
35 template<int> struct X
{
36 static constexpr int n
= 4;
37 static constexpr int a
[1][1] = {n
};