------- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-03 21:43 ------- > Note that the attribute is attached to the return type of the function "f", > not > the function declaration itself. I think this means that the hidden visibility > is applied to the type, not the function, which is strange.
That is because that is how attributes on function definitions work. this is really unrelated to visibility in general but attributes. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30361