This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55742] [4.8 regression] __attribute__ in class function declaration cause "prototype does not match" errors.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Jan 2013 08:11:42 +0000
- Subject: [Bug c++/55742] [4.8 regression] __attribute__ in class function declaration cause "prototype does not match" errors.
- Auto-submitted: auto-generated
- References: <bug-55742-4@http.gcc.gnu.org/bugzilla/>
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.