``` void bar(); #pragma alloc_text("bar", bar) void bar() {} ``` **Clang** after https://github.com/llvm/llvm-project/pull/96459 ``` clang --target=x86_64-pc-windows-msvc error: symbol 'bar' is already defined ``` (passed in 18.1 release) **MSVC** ``` bar SEGMENT bar PROC ret 0 bar ENDP bar ENDS ``` https://godbolt.org/z/crEzMzzqj I am not sure whether putting a function is a section with same name is ill-formed or not. **GCC** also reports an error at assemble stage ``` __attribute__ ((section ("bar"))) void bar() {} ``` ``` Error: symbol `bar' is already defined ``` https://godbolt.org/z/he51jdbTG @MaskRay @aengelke