diff options
author | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2004-01-13 01:02:27 +0000 |
---|---|---|
committer | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2004-01-13 01:02:27 +0000 |
commit | cdf4ac6f04eaad7610945657103444472b324928 (patch) | |
tree | 74e0dd5025ef274105c0505f8e67b3a635b53295 /gcc | |
parent | fdd09134be318d63400363c8626141dcdba9686a (diff) | |
download | gcc-cdf4ac6f04eaad7610945657103444472b324928.zip gcc-cdf4ac6f04eaad7610945657103444472b324928.tar.gz gcc-cdf4ac6f04eaad7610945657103444472b324928.tar.bz2 |
re PR c++/13474 (fail to compile non type argument specialization of pointer to array of int)
PR c++/13474
* pt.c (tsubst) <INTEGER_TYPE>: Remove obsolete array index tweaking.
From-SVN: r75777
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/pt.c | 17 |
2 files changed, 5 insertions, 17 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 859f979..16e5f27 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-01-13 Giovanni Bajo <giovannibajo@gcc.gnu.org> + + PR c++/13474 + * pt.c (tsubst) <INTEGER_TYPE>: Remove obsolete array index tweaking. + 2003-01-12 Steven Bosscher <stevenb@suse.de> PR c++/13558 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 81dd711..cf73ea1 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -6566,23 +6566,6 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl) if (!processing_template_decl) max = decl_constant_value (max); - if (processing_template_decl - /* When providing explicit arguments to a template - function, but leaving some arguments for subsequent - deduction, MAX may be template-dependent even if we're - not PROCESSING_TEMPLATE_DECL. We still need to check for - template parms, though; MAX won't be an INTEGER_CST for - dynamic arrays, either. */ - || (TREE_CODE (max) != INTEGER_CST - && uses_template_parms (max))) - { - tree itype = make_node (INTEGER_TYPE); - TYPE_MIN_VALUE (itype) = size_zero_node; - TYPE_MAX_VALUE (itype) = build_min (MINUS_EXPR, sizetype, max, - integer_one_node); - return itype; - } - if (integer_zerop (omax)) { /* Still allow an explicit array of size zero. */ |