https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113992
Bug ID: 113992
Summary: in type_natural_mode
Product: gcc
Version: 9.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: ujszhangc at gmail dot com
Target Milestone: ---
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
$ gcc test.c
test.c: In function ‘fn1’:
test.c:1:2: internal compiler error: in type_natural_mode, at
config/i386/i386.c:7493
1 | typedef _Decimal32 V __attribute__ ((vector_size(16))); V fn1 (V a) {
return a; }
| ^~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
This is the code in test.c.
typedef _Decimal32 V __attribute__ ((vector_size(16))); V fn1 (V a) { return a;
}