r201100 - PR18777: This PR is already fixed; add regtest.
Richard Smith
richard-llvm at metafoo.co.uk
Mon Feb 10 09:21:40 PST 2014
Author: rsmith
Date: Mon Feb 10 11:21:40 2014
New Revision: 201100
URL: http://llvm.org/viewvc/llvm-project?rev=201100&view=rev
Log:
PR18777: This PR is already fixed; add regtest.
Modified:
cfe/trunk/test/SemaCXX/explicit.cpp
Modified: cfe/trunk/test/SemaCXX/explicit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/explicit.cpp?rev=201100&r1=201099&r2=201100&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/explicit.cpp (original)
+++ cfe/trunk/test/SemaCXX/explicit.cpp Mon Feb 10 11:21:40 2014
@@ -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}}
+}
More information about the cfe-commits
mailing list