[llvm-bugs] [Bug 24648] -fvisibility=hidden and -fvisibility-inlines-hidden being ignored

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 3 17:12:15 PDT 2015


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

Rachel Mant <dx-mon at users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #8 from Rachel Mant <dx-mon at users.sourceforge.net> ---
I've been re-examining, including testing that GCC 5.1.0 does the right thing
even with -O0 (it does, expected result ensues). This is entirely about
inlining (implied and explicit). The following are my findings based on the
standard:

This is two bugs in one.
Your linker is failing to apply the rules on return type overloads correctly
(it is an error, not no diagnostic).

A function defined entirely inside a class/struct/union definition, whether
it's a member function or a non-member friend function, is always inline. Which
is exactly what I've done.

If you say inline explicitly, Clang does the right thing. If you do not
implied-inline should be applied but Clang fails to. This is true regardless of
optimisation level.

-- 
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/20150904/c3603be4/attachment.html>


More information about the llvm-bugs mailing list