https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116612
Bug ID: 116612
Summary: ICE:compiler crashed with the aligned attribute
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: iamanonymous.cs at gmail dot com
Target Milestone: ---
*******************************************************************************
OS and Platform:
$ uname -a:
Linux 65dac7c84719 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC
2023 x86_64 x86_64 x86_64 GNU/Linux
*******************************************************************************
gcc version:
Using built-in specs.
COLLECT_GCC=/home/software/gcc-trunk-3aa004f/bin/gcc
COLLECT_LTO_WRAPPER=/home/software/gcc-trunk-3aa004f/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --disable-multilib --disable-bootstrap
--enable-languages=c,c++ --prefix=/home/software/gcc-trunk-3aa004f
--enable-coverage
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 15.0.0 20240630 (experimental) (GCC)
*******************************************************************************
Program:
$ cat mutant.C
__attribute__((aligned)) typedef int a;
a b[] {
&b
This program was reduced by Creduce.
*******************************************************************************
Command Lines:
$ gcc mutant.C
mutant.C:2:5: error: alignment of array elements is greater than element size
2 | a b[] {
| ^
mutant.C:3:5: error: expected '}' at end of input
3 | &b
| ^
mutant.C:2:7: note: to match this '{'
2 | a b[] {
| ^
mutant.C:3:5: error: alignment of array elements is greater than element size
3 | &b
| ^
internal compiler error: error reporting routines re-entered.
0x576ce1b diagnostic_context::error_recursion()
???:0
0x576bba0 diagnostic_context::report_diagnostic(diagnostic_info*)
???:0
0x576cabd diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1],
diagnostic_t)
???:0
0x578bc00 error(char const*, ...)
???:0
0x25af6f2 layout_type(tree_node*)
???:0
0x15544f1 build_cplus_array_type(tree_node*, tree_node*, int)
???:0
0x155779a strip_typedefs(tree_node*, bool*, unsigned int)
???:0
0x1557074 strip_typedefs(tree_node*, bool*, unsigned int)
???:0
0x10c92f6 cxx_format_postprocessor::handle(pretty_printer*)
???:0
0x57df3fe pretty_printer::format(text_info*, urlifier const*)
???:0
0x19ea1da pp_format(pretty_printer*, text_info*, urlifier const*)
???:0
0x576bef6 diagnostic_context::report_diagnostic(diagnostic_info*)
???:0
0x576cabd diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1],
diagnostic_t)
???:0
0x578b6fa permerror(rich_location*, char const*, ...)
???:0
0xe2a061 perform_implicit_conversion_flags(tree_node*, tree_node*, int, int)
???:0
0x15ec440 convert_for_initialization(tree_node*, tree_node*, tree_node*, int,
impl_conv_rhs, tree_node*, int, int)
???:0
0x1601ab6 digest_init_flags(tree_node*, tree_node*, int, int)
???:0
0x15fd807 store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
???:0
0x1003e96 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int,
cp_decomp*)
???:0
0x1378350 c_parse_file()
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Also ICE on trunk.
Compiler Explorer: https://godbolt.org/z/q1xrf9jz7