re PR c++/13981 (Give message about incomplete class that might be implicitly upcasted.)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 8 May 2014 14:30:56 +0000 (14:30 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 8 May 2014 14:30:56 +0000 (14:30 +0000)
commit7e422c4f04827a80a296dd080001927beea2634f
treefc80e42d7e99da2afa30b1b94c67054cc05bb884
parentadd0c11114af3e58c2a64b9d34b69f38a79ef608
re PR c++/13981 (Give message about incomplete class that might be implicitly upcasted.)

/cp
2014-05-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/13981
* typeck.c (convert_for_assignment): Provide an inform for pointers
to incomplete class types.

/testsuite
2014-05-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/13981
* g++.dg/diagnostic/pr13981.C: New.

From-SVN: r210217
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr13981.C [new file with mode: 0644]