aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-02-22 21:43:55 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2005-02-22 21:43:55 +0000
commitb671e5a4993a4658274fb359e6acd69b613fa5f6 (patch)
tree05b8ffe13e98f3d8142bddd8e3236b9f33c5ffc8 /gcc/cp/semantics.c
parent245b65adcc2aa73201624a4ab09612f6acc8dc56 (diff)
downloadgcc-b671e5a4993a4658274fb359e6acd69b613fa5f6.zip
gcc-b671e5a4993a4658274fb359e6acd69b613fa5f6.tar.gz
gcc-b671e5a4993a4658274fb359e6acd69b613fa5f6.tar.bz2
parser.c (cp_parser_direct_declarator): Always complain about non-constant array bounds when in a function scope.
* parser.c (cp_parser_direct_declarator): Always complain about non-constant array bounds when in a function scope. * semantics.c (finish_id_expression): Do not mark dependent names as non-constant. From-SVN: r95417
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index fcffb3dd..4ff333b 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -2629,11 +2629,6 @@ finish_id_expression (tree id_expression,
need. */
if (TREE_CODE (id_expression) == TEMPLATE_ID_EXPR)
return id_expression;
- /* Since this name was dependent, the expression isn't
- constant -- yet. No error is issued because it might be
- constant when things are instantiated. */
- if (integral_constant_expression_p)
- *non_integral_constant_expression_p = true;
*idk = CP_ID_KIND_UNQUALIFIED_DEPENDENT;
/* If we found a variable, then name lookup during the
instantiation will always resolve to the same VAR_DECL