/cp
commit8797ee50169efee927b57dbedf1ec6c41c197a76
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jul 2013 08:35:54 +0000 (24 08:35 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jul 2013 08:35:54 +0000 (24 08:35 +0000)
treeaa800f4feaf2aef175748c37ddc9af9067e46167
parentbc3d75b49ba32f2068178dac28cf5550dcb15fd3
/cp
2013-07-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57942
* typeck.c (ptr_reasonably_similar): Use COMPARE_STRICT if one of
the target types is incomplete; return a bool, not an int.
* cp-tree.h (ptr_reasonably_similar): Adjust declaration.

/testsuite
2013-07-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57942
* g++.dg/inherit/pr57942.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201201 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/pr57942.C [new file with mode: 0644]