This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 12 August 2014 11:47, Ville Voutilainen <ville.voutilainen@gmail.com> wrote: > We shouldn't allow friend declarations and member templates to > have virt-specifiers, as neither of those can be virtual. Tested on > Linux x86-64. > Note that the standardese can be squinted at in a way that would allow > virt-specifiers on friends, there's a DR coming for that. I do not expect > the resolution of that DR to be anything but banning virt-specifiers > on such declarations. Clang has very recently made a similar fix for > friend declarations, and it already rejected virt-specifiers on member > templates. Minor tweak to the diagnostic for friends, say "friend declaration" instead of "member declared as a friend". Changelog unchanged, attached for convenience.
Attachment:
friend-member-template-virt-specifiers_2.diff
Description: Text document
Attachment:
friend-member-template-virt-specifiers.changelog
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |