https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100441
Bug ID: 100441 Summary: [ICE] output_constant_pool_2, at varasm.c:3955 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tim at klingt dot org Target Milestone: --- Created attachment 50762 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50762&action=edit reduced testcase i came across an ICE that appears when compiling for arch64 and optimisations enabled. ``` ➜ dev /path/to/sdk/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ -S -O testcase2.i -fpermissive -w testcase2.i:43:1: internal compiler error: in output_constant_pool_2, at varasm.c:3955 43 | } // namespace a | ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. ➜ dev /path/to/sdk/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ -S testcase2.i -fpermissive -w ➜ dev ➜ dev /path/to/sdk/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ --version aarch64-poky-linux-g++ (GCC) 9.2.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` reduced test-case is attached. could reproduce the issue with gcc-9.2, 9.3 and 10.2