* parser.c (cp_parser_class_head): Parse virt-specifiers
regardless of whether an id is present
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180301
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-10-21 Ville Voutilainen <ville.voutilainen@gmail.com>
+
+ PR c++/50811
+ * parser.c (cp_parser_class_head): Parse virt-specifiers
+ regardless of whether an id is present
+
2011-10-20 Jason Merrill <jason@redhat.com>
PR c++/41449
{
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
+2011-10-21 Ville Voutilainen <ville.voutilainen@gmail.com>
+
+ PR c++/50811
+ * g++.dg/cpp0x/override2.C: Add test.
+
2011-10-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* lib/gcc-dg.exp (GCC_UNDER_TEST): Set before calling
struct B7 override {}; // { dg-error "cannot specify 'override' for a class" }
+namespace N
+{
+ struct C;
+}
+
+struct N::C final{};
+
int main()
{
D3<B1> d;