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

re PR middle-end/16693 (Bitwise AND is lost when used within a cast to an enum...

re PR middle-end/16693 (Bitwise AND is lost when used within a cast to an enum of the same precision)


	PR middle-end/16693
	PR tree-optimization/16372
	* decl.c (finish_enum): Make the precision of the enumerated type
	the same width as the underlying integer type.

	* g++.dg/opt/pr16372-1.C: New test case.
	* g++.dg/opt/pr16693-1.C: New test case.
	* g++.dg/opt/pr16693-2.C: New test case.

From-SVN: r86576
parent 700686fa
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