This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47786] tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in c_type_hash, at c-family/c-common.c:4066
- From: "froydnj at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 7 Mar 2011 15:32:30 +0000
- Subject: [Bug c/47786] tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in c_type_hash, at c-family/c-common.c:4066
- Auto-submitted: auto-generated
- References: <bug-47786-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47786
--- Comment #4 from Nathan Froyd <froydnj at gcc dot gnu.org> 2011-03-07 15:32:29 UTC ---
Author: froydnj
Date: Mon Mar 7 15:32:25 2011
New Revision: 170739
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170739
Log:
PR c/47786
* c-common.c (c_type_hash): Call list_length instead of iterating
through DECL_CHAIN. Rename 'i' to 'n_elements'.
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c