{"action":"created","comment":{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments/29590216","id":29590216,"diff_hunk":"@@ -64,28 +64,53 @@ void SourceReferenceFormatter::printSourceLocation(ostream& _stream,\n \t\t\t\t<< \"Spanning multiple lines.\\n\";\n }\n \n+void SourceReferenceFormatter::printSourceName(ostream& _stream,\n+\t\t\t\t\t\t\t\t\t\t\t   SourceLocation const& _location,\n+\t\t\t\t\t\t\t\t\t\t\t   Scanner const& _scanner)\n+{\n+\tint startLine;\n+\tint startColumn;\n+\ttie(startLine, startColumn) = _scanner.translatePositionToLineColumn(_location.start);\n+\t_stream << *_location.sourceName << \":\" << (startLine + 1) << \":\" << (startColumn + 1) << \": \";\n+}\n+\n void SourceReferenceFormatter::printExceptionInformation(ostream& _stream,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t Exception const& _exception,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t string const& _name,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t CompilerStack const& _compiler)\n {\n \tSourceLocation const* location = boost::get_error_info<errinfo_sourceLocation>(_exception);\n+\tauto secondarylocation = boost::get_error_info<errinfo_secondarySourceLocation>(_exception);\n \tScanner const* scanner;","path":"libsolidity/SourceReferenceFormatter.cpp","position":21,"original_position":21,"commit_id":"a10ae73dad1f3dab74fdb51985a2d9bc6d8bea68","original_commit_id":"a10ae73dad1f3dab74fdb51985a2d9bc6d8bea68","user":{"login":"chriseth","id":9073706,"avatar_url":"https://avatars.githubusercontent.com/u/9073706?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseth","html_url":"https://github.com/chriseth","followers_url":"https://api.github.com/users/chriseth/followers","following_url":"https://api.github.com/users/chriseth/following{/other_user}","gists_url":"https://api.github.com/users/chriseth/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseth/subscriptions","organizations_url":"https://api.github.com/users/chriseth/orgs","repos_url":"https://api.github.com/users/chriseth/repos","events_url":"https://api.github.com/users/chriseth/events{/privacy}","received_events_url":"https://api.github.com/users/chriseth/received_events","type":"User","site_admin":false},"body":"Please initialize this to nullptr.","created_at":"2015-05-04T14:48:45Z","updated_at":"2015-05-04T14:48:45Z","html_url":"https://github.com/ethereum/cpp-ethereum/pull/1795#discussion_r29590216","pull_request_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/1795","_links":{"self":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments/29590216"},"html":{"href":"https://github.com/ethereum/cpp-ethereum/pull/1795#discussion_r29590216"},"pull_request":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/1795"}}},"pull_request":{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/1795","id":34624097,"html_url":"https://github.com/ethereum/cpp-ethereum/pull/1795","diff_url":"https://github.com/ethereum/cpp-ethereum/pull/1795.diff","patch_url":"https://github.com/ethereum/cpp-ethereum/pull/1795.patch","issue_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1795","number":1795,"state":"open","locked":false,"title":"Solidity: Secondary locations for errors","user":{"login":"LianaHus","id":9685356,"avatar_url":"https://avatars.githubusercontent.com/u/9685356?v=3","gravatar_id":"","url":"https://api.github.com/users/LianaHus","html_url":"https://github.com/LianaHus","followers_url":"https://api.github.com/users/LianaHus/followers","following_url":"https://api.github.com/users/LianaHus/following{/other_user}","gists_url":"https://api.github.com/users/LianaHus/gists{/gist_id}","starred_url":"https://api.github.com/users/LianaHus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LianaHus/subscriptions","organizations_url":"https://api.github.com/users/LianaHus/orgs","repos_url":"https://api.github.com/users/LianaHus/repos","events_url":"https://api.github.com/users/LianaHus/events{/privacy}","received_events_url":"https://api.github.com/users/LianaHus/received_events","type":"User","site_admin":false},"body":"PT: https://www.pivotaltracker.com/n/projects/1189488/stories/89905816","created_at":"2015-05-04T09:13:58Z","updated_at":"2015-05-04T14:48:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cf28b48ce8e3cb5e3059dfd4bdd551ae6f18f02","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/1795/commits","review_comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/1795/comments","review_comment_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1795/comments","statuses_url":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/a10ae73dad1f3dab74fdb51985a2d9bc6d8bea68","head":{"label":"LianaHus:sol_SecondaryLocationsForErrors","ref":"sol_SecondaryLocationsForErrors","sha":"a10ae73dad1f3dab74fdb51985a2d9bc6d8bea68","user":{"login":"LianaHus","id":9685356,"avatar_url":"https://avatars.githubusercontent.com/u/9685356?v=3","gravatar_id":"","url":"https://api.github.com/users/LianaHus","html_url":"https://github.com/LianaHus","followers_url":"https://api.github.com/users/LianaHus/followers","following_url":"https://api.github.com/users/LianaHus/following{/other_user}","gists_url":"https://api.github.com/users/LianaHus/gists{/gist_id}","starred_url":"https://api.github.com/users/LianaHus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LianaHus/subscriptions","organizations_url":"https://api.github.com/users/LianaHus/orgs","repos_url":"https://api.github.com/users/LianaHus/repos","events_url":"https://api.github.com/users/LianaHus/events{/privacy}","received_events_url":"https://api.github.com/users/LianaHus/received_events","type":"User","site_admin":false},"repo":{"id":29241685,"name":"cpp-ethereum","full_name":"LianaHus/cpp-ethereum","owner":{"login":"LianaHus","id":9685356,"avatar_url":"https://avatars.githubusercontent.com/u/9685356?v=3","gravatar_id":"","url":"https://api.github.com/users/LianaHus","html_url":"https://github.com/LianaHus","followers_url":"https://api.github.com/users/LianaHus/followers","following_url":"https://api.github.com/users/LianaHus/following{/other_user}","gists_url":"https://api.github.com/users/LianaHus/gists{/gist_id}","starred_url":"https://api.github.com/users/LianaHus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LianaHus/subscriptions","organizations_url":"https://api.github.com/users/LianaHus/orgs","repos_url":"https://api.github.com/users/LianaHus/repos","events_url":"https://api.github.com/users/LianaHus/events{/privacy}","received_events_url":"https://api.github.com/users/LianaHus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LianaHus/cpp-ethereum","description":"Gavin Wood's C++ implementation of the Ethereum yellowpaper.","fork":true,"url":"https://api.github.com/repos/LianaHus/cpp-ethereum","forks_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/forks","keys_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/teams","hooks_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/hooks","issue_events_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/events","assignees_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/tags","blobs_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/languages","stargazers_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/stargazers","contributors_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/contributors","subscribers_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/subscribers","subscription_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/subscription","commits_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/issues/comments{/number}","contents_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/merges","archive_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/downloads","issues_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/LianaHus/cpp-ethereum/releases{/id}","created_at":"2015-01-14T11:44:38Z","updated_at":"2015-05-04T13:50:36Z","pushed_at":"2015-05-04T14:32:02Z","git_url":"git://github.com/LianaHus/cpp-ethereum.git","ssh_url":"git@github.com:LianaHus/cpp-ethereum.git","clone_url":"https://github.com/LianaHus/cpp-ethereum.git","svn_url":"https://github.com/LianaHus/cpp-ethereum","homepage":"www.gavwood.com/Paper.pdf","size":21226,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ethereum:develop","ref":"develop","sha":"abb4ed70591a1ba25b4c2115b4cf4e8f613fc761","user":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":15460666,"name":"cpp-ethereum","full_name":"ethereum/cpp-ethereum","owner":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/cpp-ethereum","description":"Gavin Wood's C++ implementation of the Ethereum yellowpaper.","fork":false,"url":"https://api.github.com/repos/ethereum/cpp-ethereum","forks_url":"https://api.github.com/repos/ethereum/cpp-ethereum/forks","keys_url":"https://api.github.com/repos/ethereum/cpp-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/cpp-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/cpp-ethereum/teams","hooks_url":"https://api.github.com/repos/ethereum/cpp-ethereum/hooks","issue_events_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/cpp-ethereum/events","assignees_url":"https://api.github.com/repos/ethereum/cpp-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/cpp-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/cpp-ethereum/tags","blobs_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/cpp-ethereum/languages","stargazers_url":"https://api.github.com/repos/ethereum/cpp-ethereum/stargazers","contributors_url":"https://api.github.com/repos/ethereum/cpp-ethereum/contributors","subscribers_url":"https://api.github.com/repos/ethereum/cpp-ethereum/subscribers","subscription_url":"https://api.github.com/repos/ethereum/cpp-ethereum/subscription","commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethereum/cpp-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/cpp-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/cpp-ethereum/merges","archive_url":"https://api.github.com/repos/ethereum/cpp-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/cpp-ethereum/downloads","issues_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/cpp-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/cpp-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/cpp-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/cpp-ethereum/releases{/id}","created_at":"2013-12-26T21:26:06Z","updated_at":"2015-05-04T09:54:25Z","pushed_at":"2015-05-04T14:22:16Z","git_url":"git://github.com/ethereum/cpp-ethereum.git","ssh_url":"git@github.com:ethereum/cpp-ethereum.git","clone_url":"https://github.com/ethereum/cpp-ethereum.git","svn_url":"https://github.com/ethereum/cpp-ethereum","homepage":"www.gavwood.com/Paper.pdf","size":96056,"stargazers_count":459,"watchers_count":459,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":156,"mirror_url":null,"open_issues_count":129,"forks":156,"open_issues":129,"watchers":459,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/1795"},"html":{"href":"https://github.com/ethereum/cpp-ethereum/pull/1795"},"issue":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1795"},"comments":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1795/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/1795/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/1795/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/a10ae73dad1f3dab74fdb51985a2d9bc6d8bea68"}}}}