{"action":"created","issue":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/1135","repository_url":"https://api.github.com/repos/cpputest/cpputest","labels_url":"https://api.github.com/repos/cpputest/cpputest/issues/1135/labels{/name}","comments_url":"https://api.github.com/repos/cpputest/cpputest/issues/1135/comments","events_url":"https://api.github.com/repos/cpputest/cpputest/issues/1135/events","html_url":"https://github.com/cpputest/cpputest/issues/1135","id":281745360,"number":1135,"title":"IAR 8.11 complains about virtual method override","user":{"login":"dangu","id":783084,"avatar_url":"https://avatars0.githubusercontent.com/u/783084?v=4","gravatar_id":"","url":"https://api.github.com/users/dangu","html_url":"https://github.com/dangu","followers_url":"https://api.github.com/users/dangu/followers","following_url":"https://api.github.com/users/dangu/following{/other_user}","gists_url":"https://api.github.com/users/dangu/gists{/gist_id}","starred_url":"https://api.github.com/users/dangu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangu/subscriptions","organizations_url":"https://api.github.com/users/dangu/orgs","repos_url":"https://api.github.com/users/dangu/repos","events_url":"https://api.github.com/users/dangu/events{/privacy}","received_events_url":"https://api.github.com/users/dangu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-13T13:14:21Z","updated_at":"2018-04-07T06:26:41Z","closed_at":null,"author_association":"NONE","body":"I have upgraded to IAR EWARM 8.11 and now it complains about the following lines in MockCheckedActualCall.h:\r\n\r\n    virtual void (*returnFunctionPointerValue())() _override;\r\n    virtual void (*returnFunctionPointerValueOrDefault(void (*)()))() _override;\r\n\r\nThis all worked in IAR EWARM 7.50. I have asked the IAR support about this and they told me that they now use C++ 2014 (before it was C++ 2003) in their compilers. I have searched some C++ standard documents, including [1] (Appendix C.2 for example) but I don't find anything about changes to the override syntax.\r\n\r\nThe following lines pass through without complains from the IAR compiler:\r\n\r\n    virtual void * returnPointerValue() _override;\r\n    virtual void * returnPointerValueOrDefault(void *) _override;\r\n\r\nI tested this in version ccd7cb433f.\r\n\r\nReferences:\r\n[1] C++ standard: http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/n4618.pdf"},"comment":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/comments/379436173","html_url":"https://github.com/cpputest/cpputest/issues/1135#issuecomment-379436173","issue_url":"https://api.github.com/repos/cpputest/cpputest/issues/1135","id":379436173,"user":{"login":"CFlix","id":38142312,"avatar_url":"https://avatars2.githubusercontent.com/u/38142312?v=4","gravatar_id":"","url":"https://api.github.com/users/CFlix","html_url":"https://github.com/CFlix","followers_url":"https://api.github.com/users/CFlix/followers","following_url":"https://api.github.com/users/CFlix/following{/other_user}","gists_url":"https://api.github.com/users/CFlix/gists{/gist_id}","starred_url":"https://api.github.com/users/CFlix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CFlix/subscriptions","organizations_url":"https://api.github.com/users/CFlix/orgs","repos_url":"https://api.github.com/users/CFlix/repos","events_url":"https://api.github.com/users/CFlix/events{/privacy}","received_events_url":"https://api.github.com/users/CFlix/received_events","type":"User","site_admin":false},"created_at":"2018-04-07T06:26:41Z","updated_at":"2018-04-07T06:26:41Z","author_association":"NONE","body":"I ran into the same issue. So is this a IAR bug or should that be fixed in CppUTest?\r\nMy temporary fix is to just remove the `_override` everywhere IAR complained but I doubt this is a proper fix..."}}
{"actor":{"display_login":"CFlix"}}