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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs