https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52321
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Mon Dec 17 21:49:58 2018 New Revision: 267219 URL: https://gcc.gnu.org/viewcvs?rev=267219&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/expr/static_cast8.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c