Issue 76484
Summary [Clang] clang does not check section name declaration
Labels clang
Assignees
Reporter LukeSTM
    
```
#define A(X)    __attribute__((section(X)))

int k A("bar");
__thread int l A("bar");  /* { dg-error "causes a section type conflict" "conflict with user-defined section" } */
```

https://godbolt.org/z/7saxcWq75
gcc could find the conflict between variant K and variant l, but clang could not. I think this could be a problem.


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to