1 // PR c++/48296
2 // { dg-options -std=c++0x }
3 
4 struct X
5 {
XX6   constexpr X() { }
fX7   constexpr X f(X x) { return x; }
8   constexpr X g(X x);
9 };
10 
g(X x)11 constexpr X X::g(X x) { return x; }
12 
13 struct Y
14 {
YY15   Y() { }
16   constexpr Y f(Y y);		// { dg-error "not a literal type" }
gY17   static constexpr Y g(Y y) {}	// { dg-error "constexpr" }
18 };
19