diff options
author | Ville Voutilainen <ville.voutilainen@gmail.com> | 2011-10-21 16:31:21 +0300 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-10-21 09:31:21 -0400 |
commit | b9af306b979306215b1f999ca2636a0874717c9c (patch) | |
tree | 6246de51819a6143d0287160899d9f74311b0c48 /gcc/cp/parser.c | |
parent | d75b27217bf410e2ca713a455852bcb8e2bcb6f2 (diff) | |
download | gcc-b9af306b979306215b1f999ca2636a0874717c9c.zip gcc-b9af306b979306215b1f999ca2636a0874717c9c.tar.gz gcc-b9af306b979306215b1f999ca2636a0874717c9c.tar.bz2 |
re PR c++/50811 ([C++0x] G++ rejects class-virt-specifier if class-head-name includes nested-name-specifier)
PR c++/50811
* parser.c (cp_parser_class_head): Parse virt-specifiers
regardless of whether an id is present
From-SVN: r180301
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 8d138fb..a762d9d 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -17853,8 +17853,8 @@ cp_parser_class_head (cp_parser* parser, { cp_parser_check_for_invalid_template_id (parser, id, type_start_token->location); - virt_specifiers = cp_parser_virt_specifier_seq_opt (parser); } + virt_specifiers = cp_parser_virt_specifier_seq_opt (parser); /* If it's not a `:' or a `{' then we can't really be looking at a class-head, since a class-head only appears as part of a |