This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50141] ICE: tree check: expected var_decl, have parm_decl in get_bit_range, at expr.c:4357 with --param allow-store-data-races=0 and bitfields
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Aug 2011 15:00:13 +0000
- Subject: [Bug middle-end/50141] ICE: tree check: expected var_decl, have parm_decl in get_bit_range, at expr.c:4357 with --param allow-store-data-races=0 and bitfields
- Auto-submitted: auto-generated
- References: <bug-50141-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50141
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-22 15:00:13 UTC ---
Author: jakub
Date: Mon Aug 22 15:00:06 2011
New Revision: 177957
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177957
Log:
PR middle-end/50141
* expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
innerdecl is a VAR_DECL.
* c-c++-common/cxxbitfields-6.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/cxxbitfields-6.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expr.c
trunk/gcc/testsuite/ChangeLog