| Issue |
175043
|
| Summary |
gnu_inline attribute doesn't work on implicitly inline functions
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
jwakely
|
It seems that clang++ ignores the `[[gnu::gnu_inline]]` attribute unless it's accompanied by an explicit `inline` keyword, even on functions that are implicitly inline, e.g. ones with `constexpr` or defined in the class body.
The [GCC docs](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-gnu_005finline-function-attribute) do say "In C++, this attribute does not depend on extern in any way, but it still requires the inline keyword to enable its special behavior." but that isn't supposed to mean that you need to add `inline` where it's already implied, like on a `constexpr` function or one declared in the class body.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs