Menu

#208 llvm/clang compile error

1.2.1
closed-fixed
nobody
None
2
2014-04-06
2014-03-15
No

compile failure:
xmlcopyeditor.cpp:2834:23: error: variable length array of non-POD element type 'wxString'
wxString choiceArray[arraySize + 1];

$ clang -v
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)

http://clang.llvm.org/compatibility.html#vla

Discussion

  • Zane U. Ji

    Zane U. Ji - 2014-03-18
    • status: open --> open-accepted
    • Group: Bugs --> 1.2.1
     
  • Zane U. Ji

    Zane U. Ji - 2014-03-19

    Here is the patch [705333] if anybody is interested.

     

    Related

    Commit: [705333]

  • Johnathan Conley

    Patch works... and yields another.

    wrapxerces.cpp:172:30: error: default initialization of an object of const type 'const wxMBConvUTF16' (aka 'const wxMBConvUTF16LE') requires a user-provided default constructor
                    const static wxMBConvUTF16 conv;
                                               ^
    wrapxerces.cpp:177:30: error: default initialization of an object of const type 'const wxMBConvUTF32' (aka 'const wxMBConvUTF32LE') requires a user-provided default constructor
                    const static wxMBConvUTF32 conv;
                                               ^
    
     
  • Zane U. Ji

    Zane U. Ji - 2014-03-20

    Another patch [19fded].

     

    Related

    Commit: [19fded]


    Last edit: Zane U. Ji 2014-04-05
  • Johnathan Conley

    resolved... one more (last one I think)

    In file included from mp3album.cpp:28:
    In file included from ./mp3album.h:28:
    In file included from ./wrapexpat.h:23:
    In file included from /usr/local/Cellar/wxmac/3.0.0/include/wx-3.0/wx/wx.h:15:
    In file included from /usr/local/Cellar/wxmac/3.0.0/include/wx-3.0/wx/object.h:19:
    In file included from /usr/local/Cellar/wxmac/3.0.0/include/wx-3.0/wx/memory.h:15:
    In file included from /usr/local/Cellar/wxmac/3.0.0/include/wx-3.0/wx/string.h:4305:
    In file included from /usr/local/Cellar/wxmac/3.0.0/include/wx-3.0/wx/crt.h:19:
    /usr/local/Cellar/wxmac/3.0.0/include/wx-3.0/wx/wxcrt.h:577:14: error: call to 'wcsstr' is ambiguous
        { return wxCRT_StrstrW(haystack, needle); }
                 ^~~~~~~~~~~~~
    /usr/local/Cellar/wxmac/3.0.0/include/wx-3.0/wx/wxcrtbase.h:155:26: note: expanded from macro 'wxCRT_StrstrW'
    #define wxCRT_StrstrW    wcsstr
                             ^~~~~~
    /usr/include/wchar.h:141:10: note: candidate function
    wchar_t *wcsstr(const wchar_t * __restrict, const wchar_t * __restrict);
             ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cwchar:189:49: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return ::wcsstr(__s1, __s2);}
                                                    ^
    
     
    • Zane U. Ji

      Zane U. Ji - 2014-04-05

      It will be better to report the problem to wxWidgets team.

       
  • Zane U. Ji

    Zane U. Ji - 2014-04-06
    • status: open-accepted --> closed-fixed
     
  • Zane U. Ji

    Zane U. Ji - 2014-04-06

    Please let me know if I missed anything.

     

Log in to post a comment.

Auth0 Logo