public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/112516] New: [14 regression] ICE when building MySQL (ree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943)
@ 2023-11-13 18:02 sjames at gcc dot gnu.org
2023-11-13 18:05 ` [Bug c++/112516] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-13 18:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112516
Bug ID: 112516
Summary: [14 regression] ICE when building MySQL (ree check:
expected tree that contains ‘decl common’ structure,
have ‘identifier_node’ in get_inner_reference, at
expr.cc:7943)
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
Created attachment 56572
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56572&action=edit
xsession_impl.cc.ii.xz
Initially reported downstream in Gentoo at https://bugs.gentoo.org/917305 by
Toralf Förster.
```
FAILED: plugin/x/client/CMakeFiles/mysqlxclient_lite.dir/xsession_impl.cc.o
[284/9671]
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DBOOST_NO_CXX98_FUNCTION_BASE
-DHAVE_CONFIG_H -DHAVE_TLSv13 -DLOG_COMPONENT_TAG=\"mysqlx\"
-DLZ4_DISABLE_DEPRECATE_WARNINGS -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-D_USE_MATH_DEFINES -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql_build
-I/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql_build/include
-I/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql
-I/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql/include
-I/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql_build/plugin/x/generated
-isystem
/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql/extra/protobuf/protobuf-3.19.4/src
-isystem
/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql/extra/libedit/libedit-20210910-3.1/src/editline
-isystem /var/tmp/portage/dev-db/mysql-8.0.34/work/mysql/plugin/x/client
-U_FORTIFY_SOURCE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -DGTEST_NO_DEATH_TEST=1
-O3 -march=native -pipe -Wa,-O2 -Wa,-mtune=znver2 -fcf-protection=none
-fdiagnostics-color=always -fdiagnostics-urls=never -frecord-gcc-switches
-ggdb3 -std=c++17 -Wall -Wextra -Wformat-security -Wvla -Wundef
-Wmissing-format-attribute -Woverloaded-virtual -Wcast-qual
-Wimplicit-fallthrough=5 -Wstringop-truncation -Wsuggest-override
-Wmissing-include-dirs -Wextra-semi -Wlogical-op -DNDEBUG -g1 -fPIC
-fdiagnostics-color=always -U_FORTIFY_SOURCE -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -DGTEST_NO_DEATH_TEST=1 -Wno-unused-parameter -Wno-undef
-Wno-unused-but-set-parameter -Wno-extra-semi -Wno-suggest-override -MD -MT
plugin/x/client/CMakeFiles/mysqlxclient_lite.dir/xsession_impl.cc.o -MF
plugin/x/client/CMakeFiles/mysqlxclient_lite.dir/xsession_impl.cc.o.d -o
plugin/x/client/CMakeFiles/mysqlxclient_lite.dir/xsession_impl.cc.o -c
/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql/plugin/x/client/xsession_impl.cc
In file included from
/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql/plugin/x/client/xsession_impl.cc:47:
/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql/plugin/x/client/validator/option_compression_validator.h:
In member function ‘void
xcl::Compression_int_store<member>::visit_integer(int64_t)’:
/var/tmp/portage/dev-db/mysql-8.0.34/work/mysql/plugin/x/client/validator/option_compression_validator.h:73:39:
internal compiler error: tree check: expected tree that contains ‘decl common’
structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943
73 |
get_ctxt()->m_compression_config.*member = value;
|
^~~~~~
0x55c32cdc7b7a tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/tree.cc:9125
0x55c32bd3c167
contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int,
char const*)
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/tree.h:3748
0x55c32bd3c167
get_inner_reference(tree_node*, poly_int<1u, long>*, poly_int<1u, long>*,
tree_node**, machine_mode*, int*, int*, int*)
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/expr.cc:7943
0x55c32d694d29 fold_unary_loc(unsigned
int, tree_code, tree_node*, tree_node*)
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/fold-const.cc:9558
0x55c32d5d38a0 fold_build1_loc(unsigned int, tree_code, tree_node*, tree_node*)
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/fold-const.cc:14082
0x55c32d5d38a0 fold_convert_loc(unsigned int, tree_node*, tree_node*)
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/fold-const.cc:2597
0x55c32c6c921c build_m_component_ref(tree_node*, tree_node*, int)
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/typeck2.cc:2381
0x55c32c01d540 build_x_binary_op(op_location_t const&, tree_code, tree_node*,
tree_code, tree_node*, tree_code, tree_node*, tree_node**, int)
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/typeck.cc:4716
0x55c32d7717ac cp_parser_binary_expression
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:10434
0x55c32d770698 cp_parser_assignment_expression
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:10595
0x55c32d76a7cd cp_parser_expression
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:10762
0x55c32d76a7cd cp_parser_expression_statement
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:12961
0x55c32d765381 cp_parser_statement
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:12741
0x55c32d7617e5 cp_parser_statement_seq_opt
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:13210
0x55c32d7617e5 cp_parser_compound_statement
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:13064
0x55c32d75dbd9 cp_parser_function_body
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:25589
0x55c32d75dbd9 cp_parser_ctor_initializer_opt_and_function_body
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:25640
0x55c32d75dbd9 cp_parser_function_definition_after_declarator
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:32307
0x55c32d8ffa91 cp_parser_late_parsing_for_member
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:33275
0x55c32d73a128 cp_parser_class_specifier
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231112/gcc-14-20231112/gcc/cp/parser.cc:26790
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```
```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20231112/work/gcc-14-20231112/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python
--enable-languages=c,c++,fortran,rust --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra,rtl
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened
14.0.0_pre20231112 p8' --with-gcc-major-version-only --enable-libstdcxx-time
--enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --enable-multilib
--with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all
--enable-libgomp --disable-libssp --disable-libada --enable-cet
--disable-systemtap --enable-valgrind-annotations --disable-vtable-verify
--disable-libvtv --with-zstd --with-isl --disable-isl-version-check
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --with-build-config='bootstrap-O3 bootstrap-lto
bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231109 (experimental) (Gentoo Hardened 14.0.0_pre20231112
p8)
```
I can reproduce with just 'g++ -c xsession_impl.cc.ii'.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/112516] [14 regression] ICE when building MySQL (ree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943)
2023-11-13 18:02 [Bug c++/112516] New: [14 regression] ICE when building MySQL (ree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943) sjames at gcc dot gnu.org
@ 2023-11-13 18:05 ` pinskia at gcc dot gnu.org
2023-11-13 18:05 ` pinskia at gcc dot gnu.org
2023-11-13 18:14 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-13 18:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112516
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
Keywords| |ice-on-valid-code
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/112516] [14 regression] ICE when building MySQL (ree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943)
2023-11-13 18:02 [Bug c++/112516] New: [14 regression] ICE when building MySQL (ree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943) sjames at gcc dot gnu.org
2023-11-13 18:05 ` [Bug c++/112516] " pinskia at gcc dot gnu.org
@ 2023-11-13 18:05 ` pinskia at gcc dot gnu.org
2023-11-13 18:14 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-13 18:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112516
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=112427
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely a dup of bug 112427.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/112516] [14 regression] ICE when building MySQL (ree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943)
2023-11-13 18:02 [Bug c++/112516] New: [14 regression] ICE when building MySQL (ree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943) sjames at gcc dot gnu.org
2023-11-13 18:05 ` [Bug c++/112516] " pinskia at gcc dot gnu.org
2023-11-13 18:05 ` pinskia at gcc dot gnu.org
@ 2023-11-13 18:14 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-11-13 18:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112516
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Most likely a dup of bug 112427.
Yes. It ICEs with r14-4793 but not r14-4792.
*** This bug has been marked as a duplicate of bug 112427 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-13 18:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 18:02 [Bug c++/112516] New: [14 regression] ICE when building MySQL (ree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.cc:7943) sjames at gcc dot gnu.org
2023-11-13 18:05 ` [Bug c++/112516] " pinskia at gcc dot gnu.org
2023-11-13 18:05 ` pinskia at gcc dot gnu.org
2023-11-13 18:14 ` mpolacek at gcc dot gnu.org
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).