OSDN Git Service

2008-02-06 Douglas Gregor <doug.gregor@gmail.com>
authordgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Feb 2008 18:49:03 +0000 (18:49 +0000)
committerdgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Feb 2008 18:49:03 +0000 (18:49 +0000)
commitf9e0ddcb5ce166a23ee27cfb01776bb4f3e27112
treeb2fa93432255d537bfd6685ef2779c940e133fbf
parentc16afec168f368227d8907aec66fcbc3dc204e62
2008-02-06  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/35049
PR c++/35096
* typeck.c (structural_comptypes): Call cp_comptypes.
(comptypes): New; called from the C/C++ common bits to perform
strict checks.
(cp_comptypes): Renamed from comptypes, which is already used,
with a different signature, by the C++ front end.
(build_reinterpret_cast_1): Call cp_comptypes.
(ptr_reasonably_similar): Ditto.
* decl.c (decls_match): Ditto.
* cvt.c (convert_to_reference): Ditto.
* cp-tree.h (same_type_p): Ditto.
(same_or_base_type_p): Ditto.
(comptypes): Rename to cp_comptypes.
* pt.c (canonical_type_parameter): Call cp_comptypes.

2008-02-06  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/35049
PR c++/35096
* g++.dg/ext/vector13.C: New.

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