{"action":"created","issue":{"url":"https://api.github.com/repos/sandstorm-io/capnproto/issues/212","labels_url":"https://api.github.com/repos/sandstorm-io/capnproto/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/sandstorm-io/capnproto/issues/212/comments","events_url":"https://api.github.com/repos/sandstorm-io/capnproto/issues/212/events","html_url":"https://github.com/sandstorm-io/capnproto/issues/212","id":85319029,"number":212,"title":"GCC and Clang disagree on ABI in 0.6-dev","user":{"login":"dwrensha","id":495768,"avatar_url":"https://avatars.githubusercontent.com/u/495768?v=3","gravatar_id":"","url":"https://api.github.com/users/dwrensha","html_url":"https://github.com/dwrensha","followers_url":"https://api.github.com/users/dwrensha/followers","following_url":"https://api.github.com/users/dwrensha/following{/other_user}","gists_url":"https://api.github.com/users/dwrensha/gists{/gist_id}","starred_url":"https://api.github.com/users/dwrensha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwrensha/subscriptions","organizations_url":"https://api.github.com/users/dwrensha/orgs","repos_url":"https://api.github.com/users/dwrensha/repos","events_url":"https://api.github.com/users/dwrensha/events{/privacy}","received_events_url":"https://api.github.com/users/dwrensha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-04T23:06:56Z","updated_at":"2015-06-05T01:28:51Z","closed_at":null,"body":"I have two c++ compilers on my system:\r\n\r\n```\r\n$ uname -a\r\nLinux tantalum 3.19.1-x86_64-linode53 #1 SMP Tue Mar 10 15:30:28 EDT 2015 x86_64 GNU/Linux\r\n\r\n$ g++ --version\r\ng++ (GCC) 5.1.0\r\n\r\n$ clang++ --version\r\nclang version 3.6.1 (tags/RELEASE_361/final)\r\nTarget: x86_64-unknown-linux-gnu\r\nThread model: posix\r\n```\r\n\r\nInstalling capnproto with the default autotools configuration uses g++. If I then try to compile simple programs with clang++, I get odd behavior:\r\n\r\n```\r\n// test.c++\r\n#include <kj/debug.h>\r\nint main() {\r\n  KJ_LOG(ERROR, \"hi\");\r\n  return 0;\r\n}\r\n```\r\n\r\n```\r\n$ clang++ -std=c++1y -I /usr/local/include -L /usr/local/lib -lkj -o test test.c++\r\n$ ./test\r\nterminate called after throwing an instance of 'std::bad_alloc'\r\n  what():  std::bad_alloc\r\nAborted (core dumped)\r\n```\r\n\r\nIf I instead compile with g++, I get the behavior I would expect:\r\n\r\n```\r\n$ g++ -std=c++1y -I /usr/local/include -L /usr/local/lib -lkj -o test test.c++\r\n$ ./test\r\ntest.c++:4: error: hi\r\n```"},"comment":{"url":"https://api.github.com/repos/sandstorm-io/capnproto/issues/comments/109117603","html_url":"https://github.com/sandstorm-io/capnproto/issues/212#issuecomment-109117603","issue_url":"https://api.github.com/repos/sandstorm-io/capnproto/issues/212","id":109117603,"user":{"login":"kentonv","id":4001805,"avatar_url":"https://avatars.githubusercontent.com/u/4001805?v=3","gravatar_id":"","url":"https://api.github.com/users/kentonv","html_url":"https://github.com/kentonv","followers_url":"https://api.github.com/users/kentonv/followers","following_url":"https://api.github.com/users/kentonv/following{/other_user}","gists_url":"https://api.github.com/users/kentonv/gists{/gist_id}","starred_url":"https://api.github.com/users/kentonv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentonv/subscriptions","organizations_url":"https://api.github.com/users/kentonv/orgs","repos_url":"https://api.github.com/users/kentonv/repos","events_url":"https://api.github.com/users/kentonv/events{/privacy}","received_events_url":"https://api.github.com/users/kentonv/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T01:28:51Z","updated_at":"2015-06-05T01:28:51Z","body":"This problem was probably introduced by commit b059922 -- which has not been included in any release, thankfully."}}