https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103888
Bug ID: 103888 Summary: ICE with global register definition after use Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: accepts-invalid, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- The following should be rejected but currently is not: extern long unsigned int sub_0 ( const char * ) ; extern void * sub_1 ( long unsigned int ) ; extern int var_0 ; void * var_1 = & var_0 ; register int var_0 asm ( "%ecx" ) ; ---- CUT ---- This is similar to PR 93160 for the C++ front-end since the front-ends don't share merge_decl sources I thought it would be best if we had two bug reports.