[Bug c++/103888] New: ICE with global register definition after use

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 2 05:13:41 GMT 2022


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.


More information about the Gcc-bugs mailing list