diff options
| author | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 10:43:53 +0000 |
|---|---|---|
| committer | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 10:43:53 +0000 |
| commit | cb1dcad03dd7b47c3aca31407eff1ae3aa119a5b (patch) | |
| tree | d0cb318eabc3722bd3ddc22fcf107c69f3fe0417 /libjava/classpath/java/sql/DatabaseMetaData.java | |
| parent | 7ceb0ab39dcb4e3e69e189bdbc0fcb37a12669f2 (diff) | |
| download | ppe42-gcc-cb1dcad03dd7b47c3aca31407eff1ae3aa119a5b.tar.gz ppe42-gcc-cb1dcad03dd7b47c3aca31407eff1ae3aa119a5b.zip | |
PR c++/53540 - using fails to be equivalent to typedef
In the example of this problem report, during the substituting of int
into 'function', tsubst_aggr_type fails for the alias ctxt1. This is
because TYPE_TEMPLATE_INFO looks for the TEMPLATE_INFO of the ctxt1
alias at the wrong place and was wrongly finding it to be NULL.
Namely, it was looking for it in the DECL_TEMPLATE_INFO of the
declaration of the type -- as if ctxt1 was an alias template
specialization -- rather than looking for it in its
CLASSTYPE_TEMPLATE_INFO.
Fixed thus. The other hunks of the patch are a cleanup to make a
better use of alias_template_specialization_p.
Bootstrapped and tested on x86_64-unknown-linux-gnu against trunk.
gcc/cp
* cp-tree.h (TYPE_TEMPLATE_INFO): For an alias that is not an
instance of alias template, don't look for its TEMPLATE_INFO in
its declaration.
(alias_template_specialization_p): Take const_tree.
* pt.c (alias_template_specialization_p): Take a const_tree.
Don't call primary_template_instantiation_p.
(primary_template_instantiation_p): Call
alias_template_specialization_p.
gcc/testsuite/
* g++.dg/cpp0x/alias-decl-24.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/java/sql/DatabaseMetaData.java')
0 files changed, 0 insertions, 0 deletions

