https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100752
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- As I mentioned on IRC, it seems like this may just be a matter of properly passing down flags/member_p in the recursive call to cp_parser_declarator.