{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/math/issues/327","repository_url":"https://api.github.com/repos/stan-dev/math","labels_url":"https://api.github.com/repos/stan-dev/math/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/math/issues/327/comments","events_url":"https://api.github.com/repos/stan-dev/math/issues/327/events","html_url":"https://github.com/stan-dev/math/issues/327","id":167934253,"number":327,"title":"log(int) is ambiguous","user":{"login":"bgoodri","id":3386282,"avatar_url":"https://avatars.githubusercontent.com/u/3386282?v=3","gravatar_id":"","url":"https://api.github.com/users/bgoodri","html_url":"https://github.com/bgoodri","followers_url":"https://api.github.com/users/bgoodri/followers","following_url":"https://api.github.com/users/bgoodri/following{/other_user}","gists_url":"https://api.github.com/users/bgoodri/gists{/gist_id}","starred_url":"https://api.github.com/users/bgoodri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgoodri/subscriptions","organizations_url":"https://api.github.com/users/bgoodri/orgs","repos_url":"https://api.github.com/users/bgoodri/repos","events_url":"https://api.github.com/users/bgoodri/events{/privacy}","received_events_url":"https://api.github.com/users/bgoodri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T19:20:42Z","updated_at":"2016-07-27T19:52:18Z","closed_at":null,"body":"#### Summary:\r\n\r\nStan code that takes the logarithm of an integer parses but does not compile in 2.11\r\n\r\n#### Description:\r\n\r\nStan code that takes the logarithm of an integer parses but does not compile in 2.11\r\n\r\n#### Reproducible Steps:\r\n\r\n```\r\ntransformed data {\r\n  real sum_log;\r\n  sum_log = 0;\r\n  for (i in 1:2) sum_log = sum_log + log(i);\r\n}\r\nmodel {}\r\n```\r\n\r\n#### Current Output:\r\n\r\n```\r\nfile166d5fc5ef52.cpp: In member function ‘void model166d2e654d2_log_namespace::model166d2e654d2_log::ctor_body(stan::io::var_context&, RNG&, std::ostream*)’:\r\nfile166d5fc5ef52.cpp:76:61: error: call of overloaded ‘log(int&)’ is ambiguous\r\n                 stan::math::assign(sum_log, (sum_log + log(i)));\r\n                                                             ^\r\n```\r\n\r\n#### Expected Output:\r\n\r\nNothing\r\n\r\n#### Additional Information:\r\n\r\nWasn't happening with 2.10. Don't hold up the 2.11 release; I'll add 0.0 to the integer.\r\n\r\n#### Current Version:\r\nv2.11.0\r\n"},"comment":{"url":"https://api.github.com/repos/stan-dev/math/issues/comments/235700092","html_url":"https://github.com/stan-dev/math/issues/327#issuecomment-235700092","issue_url":"https://api.github.com/repos/stan-dev/math/issues/327","id":235700092,"user":{"login":"syclik","id":425751,"avatar_url":"https://avatars.githubusercontent.com/u/425751?v=3","gravatar_id":"","url":"https://api.github.com/users/syclik","html_url":"https://github.com/syclik","followers_url":"https://api.github.com/users/syclik/followers","following_url":"https://api.github.com/users/syclik/following{/other_user}","gists_url":"https://api.github.com/users/syclik/gists{/gist_id}","starred_url":"https://api.github.com/users/syclik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syclik/subscriptions","organizations_url":"https://api.github.com/users/syclik/orgs","repos_url":"https://api.github.com/users/syclik/repos","events_url":"https://api.github.com/users/syclik/events{/privacy}","received_events_url":"https://api.github.com/users/syclik/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T19:52:17Z","updated_at":"2016-07-27T19:52:17Z","body":"This must have been with the vectorize-all pull request. This might actually pose a problem. Mind trying it out on any other unary function?"}}
{"actor":{"display_login":"syclik"}}