{"action":"created","issue":{"url":"https://api.github.com/repos/omni-compiler/omni-compiler/issues/205","repository_url":"https://api.github.com/repos/omni-compiler/omni-compiler","labels_url":"https://api.github.com/repos/omni-compiler/omni-compiler/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/omni-compiler/omni-compiler/issues/205/comments","events_url":"https://api.github.com/repos/omni-compiler/omni-compiler/issues/205/events","html_url":"https://github.com/omni-compiler/omni-compiler/issues/205","id":248398039,"number":205,"title":"if-where statements cannot be combined on the same line","user":{"login":"clementval","id":1507158,"avatar_url":"https://avatars0.githubusercontent.com/u/1507158?v=4","gravatar_id":"","url":"https://api.github.com/users/clementval","html_url":"https://github.com/clementval","followers_url":"https://api.github.com/users/clementval/followers","following_url":"https://api.github.com/users/clementval/following{/other_user}","gists_url":"https://api.github.com/users/clementval/gists{/gist_id}","starred_url":"https://api.github.com/users/clementval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clementval/subscriptions","organizations_url":"https://api.github.com/users/clementval/orgs","repos_url":"https://api.github.com/users/clementval/repos","events_url":"https://api.github.com/users/clementval/events{/privacy}","received_events_url":"https://api.github.com/users/clementval/received_events","type":"User","site_admin":false},"labels":[{"id":380820818,"url":"https://api.github.com/repos/omni-compiler/omni-compiler/labels/%E5%84%AA%E5%85%88%E5%BA%A6%EF%BC%9A%E4%B8%AD","name":"優先度：中","color":"ff7777","default":false},{"id":380807777,"url":"https://api.github.com/repos/omni-compiler/omni-compiler/labels/%E7%AE%87%E6%89%80%EF%BC%9AF_Front","name":"箇所：F_Front","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":{"login":"clementval","id":1507158,"avatar_url":"https://avatars0.githubusercontent.com/u/1507158?v=4","gravatar_id":"","url":"https://api.github.com/users/clementval","html_url":"https://github.com/clementval","followers_url":"https://api.github.com/users/clementval/followers","following_url":"https://api.github.com/users/clementval/following{/other_user}","gists_url":"https://api.github.com/users/clementval/gists{/gist_id}","starred_url":"https://api.github.com/users/clementval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clementval/subscriptions","organizations_url":"https://api.github.com/users/clementval/orgs","repos_url":"https://api.github.com/users/clementval/repos","events_url":"https://api.github.com/users/clementval/events{/privacy}","received_events_url":"https://api.github.com/users/clementval/received_events","type":"User","site_admin":false},"assignees":[{"login":"clementval","id":1507158,"avatar_url":"https://avatars0.githubusercontent.com/u/1507158?v=4","gravatar_id":"","url":"https://api.github.com/users/clementval","html_url":"https://github.com/clementval","followers_url":"https://api.github.com/users/clementval/followers","following_url":"https://api.github.com/users/clementval/following{/other_user}","gists_url":"https://api.github.com/users/clementval/gists{/gist_id}","starred_url":"https://api.github.com/users/clementval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clementval/subscriptions","organizations_url":"https://api.github.com/users/clementval/orgs","repos_url":"https://api.github.com/users/clementval/repos","events_url":"https://api.github.com/users/clementval/events{/privacy}","received_events_url":"https://api.github.com/users/clementval/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-08-07T12:38:06Z","updated_at":"2017-08-07T13:07:37Z","closed_at":null,"body":"`if-then-where` statements are fine with the front-end but if we try to have it on a single line, the `if-where` statement combination fails with a `syntax error`.\r\n\r\n```fortran\r\nMODULE mod1\r\n\r\nIMPLICIT NONE\r\n\r\nCONTAINS\r\n  SUBROUTINE sub1(values, mask_a, mask_b)\r\n    real, intent(inout) :: values(:)\r\n    logical, optional ,intent(in) :: mask_a (:)\r\n    logical, optional ,intent(in) :: mask_b (:)\r\n\r\n    if (present(mask_a)) values(:) = 0.5\r\n  \r\n    if (present(mask_a)) then \r\n      where(.not. mask_a) values = 0.0\r\n    end if\r\n    if (present(mask_b)) where (.not. mask_b) values = 1.0\r\n  END SUBROUTINE sub1\r\nEND MODULE mod1\r\n```\r\n\r\n```bash\r\n\"mod1.f90:mod1\", line 16: syntax error\r\n```\r\n\r\n`where` is an action statement so it should be allowed here."},"comment":{"url":"https://api.github.com/repos/omni-compiler/omni-compiler/issues/comments/320658356","html_url":"https://github.com/omni-compiler/omni-compiler/issues/205#issuecomment-320658356","issue_url":"https://api.github.com/repos/omni-compiler/omni-compiler/issues/205","id":320658356,"user":{"login":"clementval","id":1507158,"avatar_url":"https://avatars0.githubusercontent.com/u/1507158?v=4","gravatar_id":"","url":"https://api.github.com/users/clementval","html_url":"https://github.com/clementval","followers_url":"https://api.github.com/users/clementval/followers","following_url":"https://api.github.com/users/clementval/following{/other_user}","gists_url":"https://api.github.com/users/clementval/gists{/gist_id}","starred_url":"https://api.github.com/users/clementval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clementval/subscriptions","organizations_url":"https://api.github.com/users/clementval/orgs","repos_url":"https://api.github.com/users/clementval/repos","events_url":"https://api.github.com/users/clementval/events{/privacy}","received_events_url":"https://api.github.com/users/clementval/received_events","type":"User","site_admin":false},"created_at":"2017-08-07T13:07:37Z","updated_at":"2017-08-07T13:07:37Z","body":"Should be fixed by #206 "}}
{"actor":{"display_login":"clementval"}}