[LLVMbugs] [Bug 6461] New: wrong error: functions that differ only in their return type cannot be overloaded
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 2 08:47:24 PST 2010
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: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list