r235456 - in /trunk/gcc: cp/ChangeLog cp/decl.c...

ppalka@gcc.gnu.org ppalka@gcc.gnu.org
Tue Apr 26 22:24:00 GMT 2016


Author: ppalka
Date: Tue Apr 26 22:24:43 2016
New Revision: 235456

URL: https://gcc.gnu.org/viewcvs?rev=235456&root=gcc&view=rev
Log:
Fix PR c++/70241 (inconsistent access with in-class enumeration)

gcc/cp/ChangeLog:

	PR c++/70241
	* decl.c (build_enumerator): Set current_access_specifier when
	declaring an enumerator belonging to an in-class enumeration.
	* parser.c (cp_parser_check_access_in_redecleration): Also
	consider in-class enumerations.

gcc/testsite/ChangeLog:

	PR c++/70241
	* g++.dg/cpp0x/enum32.C: New test.
	* g++.dg/cpp0x/enum33.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/enum32.C
    trunk/gcc/testsuite/g++.dg/cpp0x/enum33.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list