{"action":"created","issue":{"url":"https://api.github.com/repos/weidai11/cryptopp/issues/147","repository_url":"https://api.github.com/repos/weidai11/cryptopp","labels_url":"https://api.github.com/repos/weidai11/cryptopp/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/weidai11/cryptopp/issues/147/comments","events_url":"https://api.github.com/repos/weidai11/cryptopp/issues/147/events","html_url":"https://github.com/weidai11/cryptopp/issues/147","id":140221137,"number":147,"title":"Building Crypto++ with Clang on Windows results in a crash when constructing MD5 class","user":{"login":"adamf88","id":8228503,"avatar_url":"https://avatars.githubusercontent.com/u/8228503?v=3","gravatar_id":"","url":"https://api.github.com/users/adamf88","html_url":"https://github.com/adamf88","followers_url":"https://api.github.com/users/adamf88/followers","following_url":"https://api.github.com/users/adamf88/following{/other_user}","gists_url":"https://api.github.com/users/adamf88/gists{/gist_id}","starred_url":"https://api.github.com/users/adamf88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamf88/subscriptions","organizations_url":"https://api.github.com/users/adamf88/orgs","repos_url":"https://api.github.com/users/adamf88/repos","events_url":"https://api.github.com/users/adamf88/events{/privacy}","received_events_url":"https://api.github.com/users/adamf88/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/weidai11/cryptopp/labels/clang-3.7","name":"clang-3.7","color":"e11d21"},{"url":"https://api.github.com/repos/weidai11/cryptopp/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/weidai11/cryptopp/labels/windows","name":"windows","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-11T15:59:10Z","updated_at":"2016-06-22T13:44:53Z","closed_at":null,"body":"I found the problem when I compiled the cryptopp on Windows using llvm toolchain.\r\nDuring compilation there is few warnings, but finally I was able to compile the library successfully. Unfortunately the program crashes. In my case during constructing md5 class.\r\nThe problem is with CRYPTOPP_NO_VTABLE usage in IteratedHashWithStaticTransform class.\r\n\r\nThe function Init() in IteratedHashWithStaticTransform() is virtual (Defined as virtual in IteratedHashBase class).\r\n\r\nI reported it as bug in LLVM: https://llvm.org/bugs/show_bug.cgi?id=26905\r\nBut it is probably bug in the library.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/weidai11/cryptopp/issues/comments/227747846","html_url":"https://github.com/weidai11/cryptopp/issues/147#issuecomment-227747846","issue_url":"https://api.github.com/repos/weidai11/cryptopp/issues/147","id":227747846,"user":{"login":"noloader","id":3538226,"avatar_url":"https://avatars.githubusercontent.com/u/3538226?v=3","gravatar_id":"","url":"https://api.github.com/users/noloader","html_url":"https://github.com/noloader","followers_url":"https://api.github.com/users/noloader/followers","following_url":"https://api.github.com/users/noloader/following{/other_user}","gists_url":"https://api.github.com/users/noloader/gists{/gist_id}","starred_url":"https://api.github.com/users/noloader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noloader/subscriptions","organizations_url":"https://api.github.com/users/noloader/orgs","repos_url":"https://api.github.com/users/noloader/repos","events_url":"https://api.github.com/users/noloader/events{/privacy}","received_events_url":"https://api.github.com/users/noloader/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T13:44:53Z","updated_at":"2016-06-22T13:44:53Z","body":"@adamf88 - to help others, we are going to break the build when we run into Clang pretending to be VC++, and point people to the bug report:\r\n\r\n// See http://github.com/weidai11/cryptopp/issues/147\r\n#if defined(_MSC_VER) && defined(__clang__)\r\n# error: \"Unsupported configuration\"\r\n#endif \r\n\r\nUltimately, I want to recommend a Clang switch that tells Clang to \"stop pretending to be other compilers\". We have code paths for Clang, and it should be using them."}}
{"actor":{"display_login":"noloader"}}