This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23976] New: Beats me
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2005 08:21:03 -0000
- Subject: [Bug c++/23976] New: Beats me
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
enum endianness {littleEndian, hostEndianness, bigEndian};
template<typename T>
class sBigEndian {
public:
T payload;
};
template<typename T>
class asBigEndian : public sBigEndian<T> {
public:
operator T() { return payload; }
};
gets you:
~/ootbc/members/src$ g++ foo.cc
foo.cc: In member function `asBigEndian<T>::operator T()':
foo.cc:13: error: `payload' undeclared (first use this function)
foo.cc:13: error: (Each undeclared identifier is reported only once for each
function it appears in.)
--
Summary: Beats me
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23976