{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/6951","repository_url":"https://api.github.com/repos/facebook/hhvm","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/6951/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/6951/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/6951/events","html_url":"https://github.com/facebook/hhvm/issues/6951","id":144917613,"number":6951,"title":"compilation error in array-init.cpp with -DDEBUG -DNDEBUG","user":{"login":"mibintc","id":9890310,"avatar_url":"https://avatars.githubusercontent.com/u/9890310?v=3","gravatar_id":"","url":"https://api.github.com/users/mibintc","html_url":"https://github.com/mibintc","followers_url":"https://api.github.com/users/mibintc/followers","following_url":"https://api.github.com/users/mibintc/following{/other_user}","gists_url":"https://api.github.com/users/mibintc/gists{/gist_id}","starred_url":"https://api.github.com/users/mibintc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mibintc/subscriptions","organizations_url":"https://api.github.com/users/mibintc/orgs","repos_url":"https://api.github.com/users/mibintc/repos","events_url":"https://api.github.com/users/mibintc/events{/privacy}","received_events_url":"https://api.github.com/users/mibintc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-31T14:26:41Z","updated_at":"2016-03-31T14:26:41Z","closed_at":null,"body":"### HHVM Version 3.10.0\r\n\r\n### Standalone code, or other way to reproduce the problem; compilation error with -DDEBUG -DNDEBUG : hhvm-3.10.0/hphp/runtime/base/array-init.cpp:26:5: error: class HPHP::ArrayInitâ does not have any field named m_addCount\r\n   : m_addCount(0)\r\n\r\n\r\n### Expected result: successful compilation\r\n\r\n### Actual result: compilation error\r\n I'm building hhvm with the Intel compiler and wanted to make a debug build so I can use the trace facility. I can add -DDEBUG onto all compilation lines by using a facility built into the Intel compiler (environment variables). When I did this all files compiled successfully except array-init.cpp. I noticed that in array-init.h the members m_addCount are defined # ifndef NDEBUG but in array-init.cpp the members are initialized # if DEBUG.  Does it make sense to use the same macro in both source files?\r\nThanks and regards, Melanie Blower (iworkforintel)\r\nPS No doubt I used the wrong way to build the makefile /cmake -DCMAKE_C_COMPILER:FILEPATH=`which icc` -DMYSQL_UNIX_SOCK_ADDR=/dev/null -DCMAKE_INSTALL_PREFIX=.../hhvminstall -DCMAKE_CXX_COMPILER:FILEPATH=`which icpc` -DCMAKE_VERBOSE_MAKEFILE=ON .\r\n\r\n"}}