public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "koraq at xs4all dot nl" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55842] New: C++11 ICE with boost multi-precision and boost variant Date: Tue, 01 Jan 2013 16:06:00 -0000 [thread overview] Message-ID: <bug-55842-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55842 Bug #: 55842 Summary: C++11 ICE with boost multi-precision and boost variant Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: koraq@xs4all.nl Compiling the attached sample file leads to an internal compiler error. The problem only occurs with GCC-4.7 from Debian Unstable 4.7.2-1 and the upcoming 4.8 from Debian Experimental 4.8-20121218-1. Tested on an amd64 system. I'm using a checkout of the latest boost release tree. The command to reproduce the issue is: gcc-4.8 -std=c++11 -c -I/src/boost/release test.cpp This results in the following output: In file included from /src/boost/release/boost/config.hpp:57:0, from /src/boost/release/boost/variant/detail/config.hpp:16, from /src/boost/release/boost/variant/variant.hpp:23, from /src/boost/release/boost/variant.hpp:17, from test.cpp:2: /src/boost/release/boost/type_traits/has_nothrow_constructor.hpp: In instantiation of 'const bool boost::detail::has_nothrow_constructor_imp<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> > >::value': /src/boost/release/boost/type_traits/has_nothrow_constructor.hpp:32:1: required from 'struct boost::has_nothrow_constructor<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> > >' /src/boost/release/boost/mpl/aux_/nested_type_wknd.hpp:26:31: required from 'struct boost::mpl::aux::nested_type_wknd<boost::has_nothrow_constructor<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> > > >' /src/boost/release/boost/mpl/not.hpp:39:8: required from 'struct boost::mpl::not_<boost::has_nothrow_constructor<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> > > >' /src/boost/release/boost/mpl/aux_/nested_type_wknd.hpp:26:31: required from 'struct boost::mpl::aux::nested_type_wknd<boost::mpl::apply1<boost::mpl::protect<boost::detail::variant::find_fallback_type_pred>, boost::mpl::l_iter<boost::mpl::l_item<mpl_::long_<1l>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> >, boost::mpl::l_end> > > >' /src/boost/release/boost/mpl/aux_/preprocessed/gcc/and.hpp:23:8: required from 'struct boost::mpl::aux::and_impl<true, boost::mpl::apply1<boost::mpl::protect<boost::detail::variant::find_fallback_type_pred>, boost::mpl::l_iter<boost::mpl::l_item<mpl_::long_<1l>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> >, boost::mpl::l_end> > >, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >' /src/boost/release/boost/mpl/aux_/preprocessed/gcc/and.hpp:48:8: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] /src/boost/release/boost/mpl/aux_/preprocessed/gcc/iter_fold_if_impl.hpp:101:135: required from 'struct boost::mpl::aux::iter_fold_if_impl<boost::mpl::l_iter<boost::mpl::l_item<mpl_::long_<1l>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> >, boost::mpl::l_end> >, mpl_::int_<0>, boost::mpl::protect<boost::mpl::next<mpl_::na> >, boost::mpl::protect<boost::mpl::aux::iter_fold_if_pred<boost::mpl::protect<boost::detail::variant::find_fallback_type_pred>, boost::mpl::l_iter<boost::mpl::l_end> >, 0>, mpl_::na, boost::mpl::always<mpl_::bool_<false> > >' /src/boost/release/boost/mpl/iter_fold_if.hpp:81:12: required from 'struct boost::mpl::iter_fold_if<boost::mpl::l_item<mpl_::long_<1l>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> >, boost::mpl::l_end>, mpl_::int_<0>, boost::mpl::protect<boost::mpl::next<mpl_::na> >, boost::mpl::protect<boost::detail::variant::find_fallback_type_pred>, mpl_::na, mpl_::na>::result_' /src/boost/release/boost/mpl/iter_fold_if.hpp:104:11: required from 'struct boost::mpl::iter_fold_if<boost::mpl::l_item<mpl_::long_<1l>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> >, boost::mpl::l_end>, mpl_::int_<0>, boost::mpl::protect<boost::mpl::next<mpl_::na> >, boost::mpl::protect<boost::detail::variant::find_fallback_type_pred>, mpl_::na, mpl_::na>' /src/boost/release/boost/variant/variant.hpp:189:17: required from 'struct boost::detail::variant::find_fallback_type<boost::mpl::l_item<mpl_::long_<1l>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> >, boost::mpl::l_end> >' /src/boost/release/boost/variant/variant.hpp:1271:17: required from 'class boost::variant<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<64u, 0u> > >' test.cpp:10:27: required from here /src/boost/release/boost/type_traits/has_nothrow_constructor.hpp:24:32: internal compiler error: in nothrow_spec_p, at cp/except.c:1265 BOOST_STATIC_CONSTANT(bool, value = BOOST_HAS_NOTHROW_CONSTRUCTOR(T)); ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions. Preprocessed source stored into /tmp/cc6oBMd0.out file, please attach this to your bugreport.
next reply other threads:[~2013-01-01 16:06 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-01 16:06 koraq at xs4all dot nl [this message] 2013-01-01 16:10 ` [Bug c++/55842] " koraq at xs4all dot nl 2013-01-01 16:11 ` koraq at xs4all dot nl 2013-01-01 18:31 ` glisse at gcc dot gnu.org 2013-01-02 10:35 ` [Bug c++/55842] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org 2013-01-03 19:40 ` jason at gcc dot gnu.org 2013-01-03 20:37 ` jason at gcc dot gnu.org 2013-01-03 20:38 ` jason at gcc dot gnu.org 2013-01-03 20:44 ` jason at gcc dot gnu.org 2013-02-09 19:01 ` koraq at xs4all dot nl
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-55842-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).