[LLVMbugs] [Bug 7089] New: Problem matching in member functions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 7 08:08:30 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7089
Summary: Problem matching in member functions
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4861)
--> (http://llvm.org/bugs/attachment.cgi?id=4861)
Example code if template matching issue
In the following piece of code, the call to g(*t) compiles fine, whereas the
call to r.f(*t) fails to compile. Comeau and g++ compile both fine.
template<class , class > struct pair
{
template<class _U1, class _U2> pair( pair<_U1, _U2> )
{ }
};
template<typename > struct basic_string;
struct _Rb_tree
{ int f( const pair<const basic_string<char>, int>& ); };
int g( const pair<const basic_string<char>, int>& );
void foo()
{
pair<const char*, int>* t;
_Rb_tree r;
r.f(*t); // This line fails to compile.
g(*t); // This line compiles fine.
}
--
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