1 // We used to crash on this instead of giving a decent error.
2 // { dg-do compile { target c++11 } }
3 
4 struct A { int i; };
5 
6 struct B {
7   const A *a;
BB8   constexpr B(const A& a): a(&a) { }
9 };
10 
11 constexpr B b{A{42}};		// { dg-error "constant|expansion" }
12