Fix issue with GCC attribute syntax

This commit is contained in:
Jonathan Müller 2017-10-30 18:52:11 +01:00
commit da3d515d09
4 changed files with 15 additions and 17 deletions

View file

@ -561,12 +561,16 @@ namespace
}
}
cpp_attribute_list detail::parse_attributes(detail::cxtoken_stream& stream)
cpp_attribute_list detail::parse_attributes(detail::cxtoken_stream& stream, bool skip_anway)
{
cpp_attribute_list result;
while (parse_attribute_impl(result, stream))
{
}
skip_anway = false;
if (skip_anway)
stream.bump();
return result;
}