[Bug c++/45642] g++ 4.6 regression, c++0x, weird mismatch for arguments with forwarded declaration when attributes are involved

tbptbp at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 10 18:00:00 GMT 2010



------- Comment #4 from tbptbp at gmail dot com  2010-09-10 18:00 -------
(In reply to comment #2)
> I think you need __attribute((aligned(16))) on the original forward declared
> class too.
As stated that does, indeed, fix it.
So, ok, let's say previous versions were too permissive, then, the problem is
with the extremely confusing and useless diagnostic: there's no warning with
-Wall -Wextra about the declaration/definition mismatch, and a puzzling error
about an unrelated foo(x, y) not matching foo(x, y).


-- 


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



More information about the Gcc-bugs mailing list