From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0ECF53858D34; Sun, 12 Sep 2021 20:15:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0ECF53858D34 From: "andysem at mail dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102293] [10 regression] ICE when compiling Boost.Xpressive (in value_dependent_expression_p, at cp/pt.c:26730) Date: Sun, 12 Sep 2021 20:15:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andysem at mail dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2021 20:15:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102293 --- Comment #1 from andysem at mail dot ru --- I forgot to mention that the same code compiles successfully with gcc 9.4.0. And here is the output from gcc 11.1.0: In file included from ./boost/assert.hpp:58, from ./boost/xpressive/detail/core/matcher/simple_repeat_matcher.hpp:16, from ./boost/xpressive/detail/core/matchers.hpp:46, from ./boost/xpressive/detail/core/linker.hpp:35, from ./boost/xpressive/detail/static/static.hpp:19, from ./boost/xpressive/detail/static/transforms/as_matcher.hpp:18, from ./boost/xpressive/detail/static/grammar.hpp:21, from ./boost/xpressive/basic_regex.hpp:28, from ./boost/xpressive/regex_compiler.hpp:30, from ./boost/xpressive/xpressive_dynamic.hpp:17, from libs/log/test/run/filt_matches_xpressive.cpp:18: ./boost/xpressive/detail/core/matcher/simple_repeat_matcher.hpp: In instantiation of =E2=80=98boost::xpressive::detail::simple_repeat_matcher::simple_repeat_matcher(const Xpr&, unsigned int, unsigned int, std::size_t) [with Xpr =3D boost::xpressive::detail::matcher_wrapper >, mpl_::bool_, boost::xpressive::detail::compound_charset > > > >; Greedy =3D mpl_::bool_; std::size_t =3D long unsigned int]=E2=80=99: ./boost/xpressive/detail/dynamic/dynamic.hpp:216:48: required from =E2=80= =98void boost::xpressive::detail::make_simple_repeat(const boost::xpressive::detail::quant_spec&, boost::xpressive::detail::sequence&, const Xpr&) [with BidiIter = =3D const char*; Xpr =3D boost::xpressive::detail::matcher_wrapper >, mpl_::bool_, boost::xpressive::detail::compound_charset > > > >]=E2=80=99 ./boost/xpressive/detail/dynamic/dynamic.hpp:130:31: required from =E2=80= =98void boost::xpressive::detail::dynamic_xpression::repeat_(con= st boost::xpressive::detail::quant_spec&, boost::xpressive::detail::sequence&, mpl_::int_<1>, mpl_::false_) const [with Matcher =3D boost::xpressive::detail::charset_matcher >, mpl_::bool_, boost::xpressive::detail::compound_charset > > >; BidiIter =3D const char*; mpl_::false_ =3D mpl_::bool_]=E2=80=99 ./boost/xpressive/detail/dynamic/dynamic.hpp:96:22: required from =E2=80= =98void boost::xpressive::detail::dynamic_xpression::repeat(const boost::xpressive::detail::quant_spec&, boost::xpressive::detail::sequence&) const [with Matcher =3D boost::xpressive::detail::charset_matcher >, mpl_::bool_, boost::xpressive::detail::compound_charset > > >; BidiIter =3D const char*]= =E2=80=99 ./boost/xpressive/detail/dynamic/dynamic.hpp:94:18: required from here ./boost/xpressive/detail/core/matcher/simple_repeat_matcher.hpp:81:37: inte= rnal compiler error: in value_dependent_expression_p, at cp/pt.c:26978 81 | BOOST_ASSERT(0 !=3D width && unknown_width() !=3D width= ); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./boost/xpressive/detail/core/matcher/simple_repeat_matcher.hpp:81:13: note= : in expansion of macro =E2=80=98BOOST_ASSERT=E2=80=99 81 | BOOST_ASSERT(0 !=3D width && unknown_width() !=3D width= ); | ^~~~~~~~~~~~ 0xe306b3 internal_error(char const*, ...) ???:0 0xe27039 fancy_abort(char const*, int, char const*) ???:0 0xf5208e value_dependent_expression_p(tree_node*) ???:0 0xf520a9 value_dependent_expression_p(tree_node*) ???:0 0x10ed97e tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bo= ol, bool) ???:0 0x10eddd9 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bo= ol, bool) ???:0 0x10ee17a tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bo= ol, bool) ???:0 0x1178f37 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ???:0 0x117910c tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ???:0 0x1179047 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ???:0 0x1178f95 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ???:0 0x1179047 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ???:0 0x1178f95 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ???:0 0x122150a instantiate_decl(tree_node*, bool, bool) ???:0 0xfa3850 instantiate_pending_templates(int) ???:0 0xf9f8f3 c_parse_final_cleanups() ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. "g++-11" -ftemplate-depth-1024 -std=3Dc++03 -fPIC -m64 -pthread -O0 -fno-inline -Wall -g -fno-strict-aliasing -DBOOST_ALL_NO_LIB=3D1 -DBOOST_ATOMIC_DYN_LINK=3D1 -DBOOST_CHRONO_DYN_LINK=3D1 -DBOOST_FILESYSTEM_DYN_LINK=3D1 -DBOOST_LOG_DYN_LINK=3D1 -DBOOST_LOG_SETUP_DYN_LINK=3D1 -DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_SSSE3 -DBOOST_TEST_DYN_LINK=3D1 -DBOOST_TEST_NO_AUTO_LINK=3D1 -DBOOST_THREAD_BUIL= D_DLL=3D1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=3D1 -D_XOPEN_SOURCE=3D600 -I"." -I"libs/log/test/common" -c -o "bin.v2/libs/log/test/filt_matches_xpressive.test/gcc-11/debug/cxxstd-03-is= o/threadapi-pthread/threading-multi/run/filt_matches_xpressive.o" "libs/log/test/run/filt_matches_xpressive.cpp"=