[LLVMbugs] [Bug 10459] New: explicit conversion function return conversions not restricted to qualifications
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 23 14:21:12 PDT 2011
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: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list