http://llvm.org/bugs/show_bug.cgi?id=6979
Summary: error: no type named ...
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
macbook-7:openlierox az$ ../CppIDE/llvm-src/Debug/bin/clang++ foo.cpp
In file included from /Users/az/Programmierung/openlierox/src/main.cpp:1:
In file included from /Users/az/Programmierung/openlierox/src/main.cpp:21:
In file included from
/Users/az/Programmierung/openlierox/./include/CClient.h:24:
In file included from
/Users/az/Programmierung/openlierox/./include/FastVector.h:14:
/Users/az/Programmierung/openlierox/./include/Event.h:68:25: error: no type
named
'HandlerList' in 'Event<_Data>'
const typename Event::HandlerList& get() { return base->m_handlers; }
~~~~~~~~~~~~~~~~^~~~~~~~~~~
1 error generated.
This seems invalid. This is the code:
template< typename _Data = EventData >
class Event : public _Event {
public:
class Handler {
public:
typedef _Data Data;
virtual ~Handler() {}
virtual void operator()(_Data data) = 0;
virtual bool operator==(const Handler& hndl) = 0;
virtual Handler* copy() const = 0;
};
typedef std::list< Ref<Handler> > HandlerList;
...
I was not able though to reconstruct a test case because I always get the crash
of bug #6977. But I will attach the preprocessed file.
--
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