]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-typeck.c
c-typeck.c (build_conditional_expr): When merging type qualifiers for conditional...
authorJoseph Myers <jsm28@cam.ac.uk>
Mon, 20 Nov 2000 19:06:19 +0000 (19:06 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 20 Nov 2000 19:06:19 +0000 (19:06 +0000)
commit1d7ff272c796a4fa6e25fef75aaa49d7d0a73f72
tree97024f1a070b7d7df63683cd4f106a692baa01d4
parent029a4f4dea9d93d36a058b4dd5cc1c17fa7bf2a2
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
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-condexpr-1.c [new file with mode: 0644]