{"action":"created","issue":{"url":"https://api.github.com/repos/asutton/clang/issues/36","repository_url":"https://api.github.com/repos/asutton/clang","labels_url":"https://api.github.com/repos/asutton/clang/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/asutton/clang/issues/36/comments","events_url":"https://api.github.com/repos/asutton/clang/issues/36/events","html_url":"https://github.com/asutton/clang/issues/36","id":264007129,"number":36,"title":"debug deduced type?","user":{"login":"ehuhtala","id":4749706,"avatar_url":"https://avatars1.githubusercontent.com/u/4749706?v=4","gravatar_id":"","url":"https://api.github.com/users/ehuhtala","html_url":"https://github.com/ehuhtala","followers_url":"https://api.github.com/users/ehuhtala/followers","following_url":"https://api.github.com/users/ehuhtala/following{/other_user}","gists_url":"https://api.github.com/users/ehuhtala/gists{/gist_id}","starred_url":"https://api.github.com/users/ehuhtala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehuhtala/subscriptions","organizations_url":"https://api.github.com/users/ehuhtala/orgs","repos_url":"https://api.github.com/users/ehuhtala/repos","events_url":"https://api.github.com/users/ehuhtala/events{/privacy}","received_events_url":"https://api.github.com/users/ehuhtala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-09T19:51:20Z","updated_at":"2017-10-20T21:05:07Z","closed_at":null,"author_association":"NONE","body":"Would it be possible to output what a deduced type looks like? \r\n\r\nE.g. for lambda, I'm thinking something like:\r\n\r\nauto f = [f=4](char){};\r\nusing f_type = std::decay<decltype(f)>::type;\r\n\r\nconstexpr {\r\n    compiler.debug($f_type);\r\n}\r\n\r\nOr for templates:\r\n\r\ntemplate <typename T>\r\nvoid func() {\r\n    constexpr {\r\n        compiler.debug($T);\r\n    }\r\n}"},"comment":{"url":"https://api.github.com/repos/asutton/clang/issues/comments/338322044","html_url":"https://github.com/asutton/clang/issues/36#issuecomment-338322044","issue_url":"https://api.github.com/repos/asutton/clang/issues/36","id":338322044,"user":{"login":"ehuhtala","id":4749706,"avatar_url":"https://avatars1.githubusercontent.com/u/4749706?v=4","gravatar_id":"","url":"https://api.github.com/users/ehuhtala","html_url":"https://github.com/ehuhtala","followers_url":"https://api.github.com/users/ehuhtala/followers","following_url":"https://api.github.com/users/ehuhtala/following{/other_user}","gists_url":"https://api.github.com/users/ehuhtala/gists{/gist_id}","starred_url":"https://api.github.com/users/ehuhtala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehuhtala/subscriptions","organizations_url":"https://api.github.com/users/ehuhtala/orgs","repos_url":"https://api.github.com/users/ehuhtala/repos","events_url":"https://api.github.com/users/ehuhtala/events{/privacy}","received_events_url":"https://api.github.com/users/ehuhtala/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T21:05:07Z","updated_at":"2017-10-20T21:05:07Z","author_association":"NONE","body":"in template classes, the error looks like:\r\n`blah.cpp:15:5: error: expression is not an integral constant expression\r\n    constexpr {\r\n    ^\r\nblah.cpp:16:9: note: non-literal type '<dependent type>' cannot be used in a constant expression\r\n        compiler.debug($T);\r\n        ^\r\nnote: in call to '__constexpr_decl()'`"}}
{"actor":{"display_login":"ehuhtala"}}