http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50864
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-10-25 Ever Confirmed|0 |1 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-25 14:25:23 UTC --- Apparently this has essentially to do with namespaces, TREE_CODE (code) is NAMESPACE_DECL when tsubst_copy ICEs. The testcase is a bit garbled (ie, cannot possibly compile anyway) - missing std::declval, mpl::true_, mpl::false_, is_arrow_dereferencable - but interestingly if all the missing bits are provided in the global namespace, no ICE.