https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123804

            Bug ID: 123804
           Summary: gcc 14.3 compile ICE
           Product: gcc
           Version: 14.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 314575546 at qq dot com
  Target Milestone: ---

code:
static void __attribute__((__no_sanitize__("test"))) panic_exit(void)
{
}

void cleanup_module(void) __attribute__((__copy__(panic_exit)))
__attribute__((alias("panic_exit")));

I found that when I used GCC 14.3 to compile this C program, the compiler
reported an error, and the error information is as follows:

<source>:2:1: warning: 'test' attribute directive ignored [-Wattributes]
    2 | {
      | ^
<source>:5:1: internal compiler error: Segmentation fault
    5 | void cleanup_module(void) __attribute__((__copy__(panic_exit)))
__attribute__((alias("panic_exit")));
      | ^~~~
0x7e62f7a29e3f __libc_start_main
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1


https://godbolt.org/z/bTMzKsszG

Please help me confirm if this is a compiler issue.

Reply via email to