[LLVMbugs] [Bug 10453] New: Explicit conversion operator (incorrectly) used during call to object of class type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 23 03:12:39 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10453
Summary: Explicit conversion operator (incorrectly) used during
call to object of class type
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jonathan.sauer at gmx.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following program compiles with clang r135379:
void testFunctionPointer()
{
// 13.3.1.1.2p2:
using Func = void(*)(int);
struct NotFP {
explicit operator Func();
};
NotFP nfp;
nfp(1);
}
even though NotFP's conversion operator is explicit and thus according to FDIS
13.3.1.1.2p2 should not be used:
| In addition, for each non-explicit conversion function declared in T of the
form [...]
--
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