https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117828
Bug ID: 117828
Summary: -g and error: ‘TYPE_CANONICAL’ is not compatible
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
For this much reduced C source code:
struct {
struct {
int Reserved : 32
}
};
struct {
struct {
int Reserved
}
};
seems to go wrong with recent gcc trunk:
cvise $ ~/gcc/results/bin/gcc -c -w -g bug1069.c
bug1069.c:10:1: error: ‘TYPE_CANONICAL’ is not compatible
10 | };
| ^
<record_type 0x7f4dd55de150 asm_written SI
size <integer_cst 0x7f4dd5424198 type <integer_type 0x7f4dd54220a8
bitsizetype> constant 32>
...
It's ok without the -g debug flag:
cvise $ ~/gcc/results/bin/gcc -c -w bug1069.c
cvise $
The bug first seems to occur sometime between g:fff5cfa4353e0c45
and g:6350e956d1a74963, which is 52 commits.