PR18777: This PR is already fixed; add regtest.
llvm-svn: 201100
This commit is contained in:
parent
cfb40600e9
commit
36be8d8306
|
@ -246,3 +246,8 @@ namespace pr8264 {
|
|||
explicit explicit Test(int x); // expected-warning{{duplicate 'explicit' declaration specifier}}
|
||||
};
|
||||
}
|
||||
|
||||
namespace PR18777 {
|
||||
struct S { explicit operator bool() const; } s;
|
||||
int *p = new int(s); // expected-error {{no viable conversion}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue