re PR c/45584 (typeof with casting from const to non-const does not work properly)
authorPatrick Palka <ppalka@gcc.gnu.org>
Tue, 19 Aug 2014 14:14:15 +0000 (14:14 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Tue, 19 Aug 2014 14:14:15 +0000 (14:14 +0000)
commitc77935ee29336399ab6318e912baa174e243654a
treeaa8358e5df2689d3a6cc449f8540ceb1d095a0c6
parentd20770308827d407c4fc2b25413bbf5e716971f9
re PR c/45584 (typeof with casting from const to non-const does not work properly)

2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>

PR c/45584
* c-typeck.c (build_c_cast): Do a conversion even when the
TYPE_MAIN_VARIANTs are the same.

2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>

PR c/45584
* gcc.dg/pr13519-1.c: Adjust.

From-SVN: r214151
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr13519-1.c