/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 2011 19:49:33 +0000 (19:49 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 2011 19:49:33 +0000 (19:49 +0000)
commit8215802edb074187f98ef45a4d1b5eefa58286b4
tree926a7708203d24fbbb6e3f7f99596c230ab2c51e
parent964ec9cd8bd2896d0fd242db33bc7eeba8e4e62f
/cp
2011-10-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/50732
* semantics.c (finish_trait_expr): Do not try to instantiate the
the base type of an __is_base_of trait.
(check_trait_type): Return a tree; use complete_type_or_else.

/testsuite
2011-10-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/50732
* g++.dg/ext/is_base_of_incomplete.C: New.
* g++.dg/ext/is_base_of_diagnostic.C: Adjust dg-errors.
* g++.dg/ext/unary_trait_incomplete.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180048 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/is_base_of_diagnostic.C
gcc/testsuite/g++.dg/ext/is_base_of_incomplete.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/unary_trait_incomplete.C