https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95790
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Yichao Yu from comment #2) > The C++ code attached above produces the following incorrect code with `g++ > -O2 -S` > > .file "a.c" > .text > .p2align 4 > .globl _Z3barv > .type _Z3barv, @function > _Z3barv: > .LFB3: > .cfi_startproc > movl $4096, %eax > ret > .cfi_endproc > .LFE3: > .size _Z3barv, .-_Z3barv > .p2align 4 > .globl _Z3barv.avx > .type _Z3barv.avx, @function > _Z3barv.avx: > .LFB4: > .cfi_startproc > movl $8192, %eax > ret > .cfi_endproc > .LFE4: > .size _Z3barv.avx, .-_Z3barv.avx > .ident "GCC: (GNU) 10.1.0" > .section .note.GNU-stack,"",@progbits > It looks correct me. What is the issue?