This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 30066


Need to make sure that this comment is still accurate:

          /* Local statics and classes get the visibility of their
             containing function by default, except that
             -fvisibility-inlines-hidden doesn't affect them.  */

i.e. given


inline int * f() { static int i; return &i; }

int main()
{
  f();
}

f()::i should not be hidden, nor should a local class.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]