blob: 5c7d85f6ed5ae669c0a6908ab2b237d18ee6049c [file] [log] [blame]
Douglas Gregord836c0d2011-09-22 23:04:35 +00001// RUN: %clang_cc1 -fsyntax-only -std=c++0x %s -verify
2
3namespace PR10457 {
4
5 class string
6 {
7 string(const char* str, unsigned);
8
9 public:
10 template <unsigned N>
11 string(const char (&str)[N])
12 : string(str) {} // expected-error{{constructor for 'string<6>' creates a delegation cycle}}
13 };
14
15 void f() {
16 string s("hello");
17 }
18}