This is the mail archive of the gcc-bugs@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]

[Bug c/17555] function visibility attribute in definition misinterpreted


------- Additional Comments From jsm at polyomino dot org dot uk  2004-09-18 21:52 -------
Subject: Re:  New: function visibility attribute in definition
 misinterpreted

On Sat, 18 Sep 2004, drepper at redhat dot com wrote:

> When a function visibility attribute is used in the definition of a function and
> the return value type of the function is a pointer, the attribute is
> misinterpreted as belonging to the type.  Example:

This appears to be the same as bug 17251.  The attribute in that position 
syntactically applies to the return type, but there has traditionally been 
a fair amount of flexibility in interpreting attributes in "wrong" places 
sensibly - for example, applying attributes on a return type to the 
declaration instead if they don't make sense on the return type.  This is 
what probably makes sense to do in this case.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17555


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