https://llvm.org/bugs/show_bug.cgi?id=26949
Bug ID: 26949 Summary: [ms] clang fails to compile sample Aero from WTL Product: clang Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: andrey.kules...@intel.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified !- compilation of WTL example WTL/Aero fails with clang. MS can compile the whole project without any errors. These three problems also appear during compilation of this sample: 26735 26738 26748 -! ========Environment============== Os: Win Language: C++ Version: trunk ========Reproducer================ 1) Download WTL from here: https://sourceforge.net/projects/wtl/ to [WTL_HOME] 2) Goto [WTL_HOME]/Samples/Aero 3) clang-cl -c -D_UNICODE -I ../../include Aero.cpp ========Small Reproducer========== template <class T> class CAeroImpl{ public: CAeroImpl() {} }; template <class T> class CAeroDialogImpl : public CAeroImpl<T>{ public: CAeroDialogImpl() : CAeroImpl() {} }; class CAboutDlg : public CAeroDialogImpl<CAboutDlg>{ public: int OnCloseCmd() {} }; class CMainFrame{ public: int OnAppAbout(){ CAboutDlg dlg; return 0; } }; =============Error================== >>> clang: error: member initializer 'CAeroImpl' does not name a non-static data member or base class >>> msvc: no diag >>> gcc: error: class ‘CAeroDialogImpl<T>’ does not have any field named CAeroDialogImpl() : CAeroImpl() {} Andrey Kuleshov ====== Software Engineer Intel Compiler Team -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs