http://llvm.org/bugs/show_bug.cgi?id=10459
Summary: explicit conversion function return conversions not
restricted to qualifications
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The following should be rejected
struct A { explicit operator int(); };
long a = long(A());
But clang accepts it. See also the GCC version of this PR:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47080
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs