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++/55742] [4.8 regression] __attribute__ in class function declaration cause "prototype does not match" errors.


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

--- Comment #23 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-16 08:11:42 UTC ---
Merging of target attribute is what gcc/g++ did though, the function would get
then both target attributes (seems later decl's target wins), and the first
target attribute in DECL_ATTRIBUTES would be the one to be used.  Perhaps we
can add a -Wattributes warning for that case if mv attribute isn't present and
are merging target attributes with different strings.


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