OSDN Git Service

gcc/testsuite/ChangeLog
authorfabien <fabien@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jun 2012 17:36:50 +0000 (17:36 +0000)
committerfabien <fabien@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jun 2012 17:36:50 +0000 (17:36 +0000)
commit9cdd951186a3549c552f96ada38129765f32a4ff
tree02dc4e36cc1e7afb3e0d732630e32ca1de4d7ba5
parent122a37483a484a0e4ce0335af0a405cecc078ab4
gcc/testsuite/ChangeLog

2012-06-27  Fabien ChĂȘne  <fabien@gcc.gnu.org>

PR c++/51214
* g++.dg/cpp0x/forw_enum11.C: New.

gcc/cp/ChangeLog

2012-06-27  Fabien ChĂȘne  <fabien@gcc.gnu.org>

PR c++/51214
* cp-tree.h (insert_late_enum_def_into_classtype_sorted_fields):
Declare.
* class.c (insert_into_classtype_sorted_fields): New.
(add_enum_fields_to_record_type): New.
(count_fields): Adjust the comment.
(add_fields_to_record_type): Likewise.
(finish_struct_1): Move the code that inserts the fields for the
sorted case, into insert_into_classtype_sorted_fields, and call
it.
(insert_late_enum_def_into_classtype_sorted_fields): Define.
* decl.c (finish_enum_value_list): Call
insert_late_enum_def_into_classtype_sorted_fields if a late enum
definition is encountered.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@189021 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/forw_enum11.C [new file with mode: 0644]