re PR c/34768 (Wrong code with conditional function invocation)
authorRichard Guenther <rguenther@suse.de>
Wed, 16 Jan 2008 09:44:23 +0000 (09:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Jan 2008 09:44:23 +0000 (09:44 +0000)
commiteb1387a0511b0b71c901c7a9458cea1cc2f911c4
tree4a6974a6ea8f6fdba10c4b24af2794548a43d1dd
parent4349e292879d8bc589a8a2b52defe5e754d75a16
re PR c/34768 (Wrong code with conditional function invocation)

2008-01-16  Richard Guenther  <rguenther@suse.de>

PR c/34768
* c-typeck.c (common_pointer_type): Do not merge inconsistent
type qualifiers for function types.

* gcc.c-torture/execute/pr34768-1.c: New testcase.
* gcc.c-torture/execute/pr34768-2.c: Likewise.

From-SVN: r131568
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr34768-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr34768-2.c [new file with mode: 0644]