{"action":"created","issue":{"url":"https://api.github.com/repos/geodynamics/aspect/issues/509","labels_url":"https://api.github.com/repos/geodynamics/aspect/issues/509/labels{/name}","comments_url":"https://api.github.com/repos/geodynamics/aspect/issues/509/comments","events_url":"https://api.github.com/repos/geodynamics/aspect/issues/509/events","html_url":"https://github.com/geodynamics/aspect/issues/509","id":83138799,"number":509,"title":"#pragma error","user":{"login":"ian-r-rose","id":5728311,"avatar_url":"https://avatars.githubusercontent.com/u/5728311?v=3","gravatar_id":"","url":"https://api.github.com/users/ian-r-rose","html_url":"https://github.com/ian-r-rose","followers_url":"https://api.github.com/users/ian-r-rose/followers","following_url":"https://api.github.com/users/ian-r-rose/following{/other_user}","gists_url":"https://api.github.com/users/ian-r-rose/gists{/gist_id}","starred_url":"https://api.github.com/users/ian-r-rose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ian-r-rose/subscriptions","organizations_url":"https://api.github.com/users/ian-r-rose/orgs","repos_url":"https://api.github.com/users/ian-r-rose/repos","events_url":"https://api.github.com/users/ian-r-rose/events{/privacy}","received_events_url":"https://api.github.com/users/ian-r-rose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-31T17:15:43Z","updated_at":"2015-05-31T20:15:07Z","closed_at":null,"body":"When compiling with icc 14, the #pragma preprocessor directives in heating_model/interface.cc cause an error:\r\n\r\naspect/source/heating_model/interface.cc:64: error: #pragma GCC diagnostic not allowed inside functions\r\n\r\nRemoving them fixes the issue."},"comment":{"url":"https://api.github.com/repos/geodynamics/aspect/issues/comments/107241039","html_url":"https://github.com/geodynamics/aspect/issues/509#issuecomment-107241039","issue_url":"https://api.github.com/repos/geodynamics/aspect/issues/509","id":107241039,"user":{"login":"tjhei","id":1531285,"avatar_url":"https://avatars.githubusercontent.com/u/1531285?v=3","gravatar_id":"","url":"https://api.github.com/users/tjhei","html_url":"https://github.com/tjhei","followers_url":"https://api.github.com/users/tjhei/followers","following_url":"https://api.github.com/users/tjhei/following{/other_user}","gists_url":"https://api.github.com/users/tjhei/gists{/gist_id}","starred_url":"https://api.github.com/users/tjhei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjhei/subscriptions","organizations_url":"https://api.github.com/users/tjhei/orgs","repos_url":"https://api.github.com/users/tjhei/repos","events_url":"https://api.github.com/users/tjhei/events{/privacy}","received_events_url":"https://api.github.com/users/tjhei/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T20:15:07Z","updated_at":"2015-05-31T20:15:07Z","body":"@ian-r-rose the error message seems to indicate that is not supported _inside_ functions. What happens if you move the whole function inside the pragmas?"}}