[llvm-bugs] [Bug 45266] New: symbol in explicit section with the same name crashes clang

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 20 15:12:40 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45266

            Bug ID: 45266
           Summary: symbol in explicit section with the same name crashes
                    clang
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk, srhines at google.com

__attribute__((section("foo")))
void foo(void) {}

crashes clang: error in backend: 'foo' label emitted multiple times to assembly
file

Not high priority; I don't have real code that uses this, but messing around in
godbolt, I noticed this crashed clang but not GCC.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200320/48915cf0/attachment-0001.html>


More information about the llvm-bugs mailing list