http://llvm.org/bugs/show_bug.cgi?id=8517
Summary: return type not recognized in out of line definition
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The following code fails to compile with error:
m.C:10:12: error: functions that differ only in their return type cannot be
overloaded
A < T > :: f ( )
^
m.C:5:11: note: previous declaration is here
Tmc_Point f ( ) ;
^
template < class T >
class A {
typedef typename T :: Geom_traits Tmc_traits ;
typedef typename T :: Point_3 Tmc_Point ;
Tmc_Point f ( ) ;
} ;
template < class T >
typename T :: Geom_traits :: Point_3
A < T > :: f ( )
{
return Tmc_Point ( ) ;
}
--
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