Skip to content
Snippets Groups Projects
Commit ffbf5f7f authored by Roger Sayle's avatar Roger Sayle Committed by Roger Sayle
Browse files

re PR middle-end/27382 (ICE in c_common_truthvalue_conversion with label address)



	PR middle-end/27382
	* c-common.c (c_common_truthvalue_conversion): Explicitly check
	for LABEL_DECL before calling DECL_WEAK.

	PR c/27150
	* c-typeck.c (build_binary_op): Likewise, explicitly check for
	LABEL_DECL and PARM_DECL.

	* gcc.dg/pr27150-1.c: New testcase.
	* gcc.dg/pr27382-1.c: New testcase.
	* gcc.dg/pr27382-2.c: New testcase.


Co-Authored-By: default avatarAndrew Pinski <pinskia@physics.uc.edu>

From-SVN: r114380
parent 5c076987
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment