PR c++/52321 print note for static_cast to/from incomplete type
authorJonathan Wakely <jwakely@redhat.com>
Mon, 17 Dec 2018 21:49:58 +0000 (21:49 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 17 Dec 2018 21:49:58 +0000 (21:49 +0000)
commitf4d458f3fab13daa8a8adbc7165ee4a7050db3f6
tree2c6206affa21424fe0236ece52816cb41f2b1ef8
parent693ad66b86dcadc9764a2ef4365902b153560dde
PR c++/52321 print note for static_cast to/from incomplete type

PR c++/52321
* typeck.c (build_static_cast): Print a note when the destination
type or the operand is a pointer/reference to incomplete class type.

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