http://llvm.org/bugs/show_bug.cgi?id=6461
Summary: wrong error: functions that differ only in their
return type cannot be overloaded
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
In file included from
/Users/az/Programmierung/openlierox/src/common/Process.cpp:83:
/Users/az/Programmierung/openlierox/./libs/pstreams/pstream.h:1742:28: error:
functions that differ only in their return type cannot be overloaded
basic_pstreambuf<C,T>::wpipe()
^
/Users/az/Programmierung/openlierox/./libs/pstreams/pstream.h:221:7: note:
previous
declaration is here
wpipe();
^
The bug is, that the first occurance is only the declaration and the second one
the definition of the declaration.
The code seems correct and valid to me. Also, all versions of GCC I have tried
so far (I think GCC 3.4, several 4.*) accept this code.
--
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