re PR c++/10635 (ICE (segfault) when dereferencing an incomplete type casted from...
authorMark Mitchell <mark@codesourcery.com>
Thu, 12 Jun 2003 17:22:29 +0000 (17:22 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 12 Jun 2003 17:22:29 +0000 (17:22 +0000)
commit79b59cc3d3896f109992cee1bbba17ee255c334d
tree473bd45b721ac8ae4a803c92a8fb1569c7cea49f
parent54da776f2d3c23bea5223a1c6449660dfd3e803c
re PR c++/10635 (ICE (segfault) when dereferencing an incomplete type casted from a void pointer)

PR c++/10635
* typeck.c (build_c_cast): Check that the destination type is
complete.

PR c++/10635
* g++.dg/expr/cast1.C: New test.

[[Split portion of a mixed commit.]]

From-SVN: r67840.2
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/cast1.C [new file with mode: 0644]