https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58109
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2013-08-09 00:00:00 |2015-12-20 CC| |msebor at gcc dot gnu.org Known to fail| |4.9.3, 5.1.0, 6.0 --- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- Still fails with the current trunk, and also 5.1.0 in addition to 4.9.3. The patch fixes the test case but I'm not yet sure it's the right or complete fix. My tests are still running but the comment makes me wonder if the function handles the other attributes correctly. Index: gcc/cp/decl2.c =================================================================== --- gcc/cp/decl2.c (revision 231870) +++ gcc/cp/decl2.c (working copy) @@ -1193,7 +1193,7 @@ second and following arguments. Attributes like mode, format, cleanup and several target specific attributes aren't late just because they have an IDENTIFIER_NODE as first argument. */ - if (arg == args && identifier_p (t)) + if (!is_attribute_p ("aligned", name) && arg == args && identifier_p (t)) continue; if (value_dependent_expression_p (t)