Skip to content
Snippets Groups Projects
Commit 1d7ff272 authored by Joseph Myers's avatar Joseph Myers Committed by Joseph Myers
Browse files

c-typeck.c (build_conditional_expr): When merging type qualifiers for...

c-typeck.c (build_conditional_expr): When merging type qualifiers for conditional expressions between a pointer and...

	* c-typeck.c (build_conditional_expr): When merging type
	qualifiers for conditional expressions between a pointer and a
	pointer to a void type, merge the qualifiers on the target types
	rather than the pointer type.  Remove obsolete conditioned out
	code.

testsuite:
	* gcc.dg/c99-condexpr-1.c: New test.

From-SVN: r37589
parent 029a4f4d
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