[llvm-bugs] [Bug 26948] New: [ms] clang fails to compile sample Aero from WTL

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 15 04:30:33 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=26948

            Bug ID: 26948
           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: unassignedclangbugs at nondot.org
          Reporter: andrey.kuleshov at intel.com
                CC: dgregor at apple.com, llvm-bugs at 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 appears 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160315/a18cde61/attachment.html>


More information about the llvm-bugs mailing list