Hi Mike,
I was able to reduce your testcase to this code:
$ cat DioBoard.ii template <typename> class a; class { void b(a... c); }
It is failing (Throwing ICE with -g2 and -g3):
$ $HOME/toolchains/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-g++ -g2 -O0 -c -mthumb -mcpu=cortex-m4 -D__SAME54N19A__ -std=c++17 -fno-rtti -MMD -Wall -Wextra -ffunction-sections -fdata-sections -exceptions -D PLATFORM_thingios -D PLATFORM_freertos -D OPTION_exceptions -D OPTION_firmware_version="0.0.1" -D OPTION_embedded -c DioBoard.ii DioBoard.ii:2:7: internal compiler error: in is_base_type, at dwarf2out.c:12987 2 | class { | ^
I think it would be best if you report it upstream: https://gcc.gnu.org/bugs
If you wish I can report it in your name. Please let me know.
kind regards Przemek
Hi Mike,
I was able to reduce your testcase to this code:
$ cat DioBoard.ii
template <typename> class a;
class {
void b(a... c);
}
It is failing (Throwing ICE with -g2 and -g3):
$ $HOME/toolchain s/gcc-arm- none-eabi- 9-2019- q4-major/ bin/arm- none-eabi- g++ -g2 -O0 -c -mthumb -mcpu=cortex-m4 -D__SAME54N19A__ -std=c++17 -fno-rtti -MMD -Wall -Wextra -ffunction-sections -fdata-sections -exceptions -D PLATFORM_thingios -D PLATFORM_freertos -D OPTION_exceptions -D OPTION_ firmware_ version= "0.0.1" -D OPTION_embedded -c DioBoard.ii
DioBoard.ii:2:7: internal compiler error: in is_base_type, at dwarf2out.c:12987
2 | class {
| ^
I think it would be best if you report it upstream: https:/ /gcc.gnu. org/bugs
If you wish I can report it in your name. Please let me know.
kind regards
Przemek