[LLVMbugs] [Bug 6979] New: error: no type named ...

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 29 13:52:32 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: ich at az2000.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list