1// Build don't link: 2 3// this is marked as an expected error because it evidences an 4// ambiguity in the grammar between expressions and declarations. 5// when the parser's been cleaned up or rewritten, the error 6// marker can go away, since it'll no longer occur. 7 8class ptr8 9 { 10public: 11 ptr8(unsigned char *string,int len); 12 }; 13 14template <unsigned int S> 15class buf 16 { 17public: 18 buf(const ptr8& aRef); 19 }; 20 21int main() 22 { 23 unsigned char b[3]; 24 buf<3> b2(ptr8(&b[0],3)); // gets bogus error - XFAIL *-*-* 25 } 26