
Consider the following snippet (trying to compile with Boost 1.62):
/////////////////////////////////////////////////////////////
#include
;
template<class Node> struct node1_type { Node child; }; struct var_type : var_base { using var_base::var_base; }; int main() { var_type v1 = 1; } /////////////////////////////////////////////////////////////////// It crashes GCC: http://melpon.org/wandbox/permlink/A6BuYqqrG4COcfFl and produces compilation error with any released version of Clang: http://melpon.org/wandbox/permlink/1JQ7OVLV3crERRJX (Although it does compile with Clang-4 trunk). I'd appreciate if Variant maintainers could take a look at it. Thanks.

2016-12-17 23:57 GMT+03:00 Igor R
Consider the following snippet (trying to compile with Boost 1.62): <...> It crashes GCC: http://melpon.org/wandbox/permlink/A6BuYqqrG4COcfFl
and produces compilation error with any released version of Clang: http://melpon.org/wandbox/permlink/1JQ7OVLV3crERRJX (Although it does compile with Clang-4 trunk).
This touches a relatively new change in variant that SFINAEs constructors. I'll investigate further soon. Have you reported the issue at the GCC tracker? -- Best regards, Antony Polukhin

Have you reported the issue at the GCC tracker?
Done: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78852 -- View this message in context: http://boost.2283326.n4.nabble.com/variant-gcc-crash-tp4690565p4690588.html Sent from the Boost - Dev mailing list archive at Nabble.com.
participants (3)
-
Antony Polukhin
-
Igor R
-
Igor R.