re PR c++/60994 (gcc does not recognize hidden/shadowed enumeration as valid nested...
authorMomchil Velikov <momchil.velikov@gmail.com>
Tue, 14 Apr 2015 15:29:21 +0000 (15:29 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 14 Apr 2015 15:29:21 +0000 (11:29 -0400)
commit2fd16d0f9007f2e9a991b80c6ae2e4c5f85272b6
tree9c81b516ff7b99da9d474e39696137390b743930
parentb42e7064553ea0deb7081e6ee7cf2aa898f6de78
re PR c++/60994 (gcc does not recognize hidden/shadowed enumeration as valid nested-name-specifier)

PR c++/60994
* parser.c (cp_parser_class_name): Add enum_ok parameter.
(cp_parser_qualifying_entity): Use it instead of cp_parser_type_name.
(cp_parser_diagnose_invalid_type_name): Don't assume a template is
a class template.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r222094
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/scoped_enum3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/scoped_enum4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/var-templ23.C