]> git.ipfire.org Git - thirdparty/gcc.git/commit
parser.c (cp_parser_direct_declarator): Always complain about non-constant array...
authorMark Mitchell <mark@codesourcery.com>
Tue, 22 Feb 2005 21:43:55 +0000 (21:43 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 22 Feb 2005 21:43:55 +0000 (21:43 +0000)
commitb671e5a4993a4658274fb359e6acd69b613fa5f6
tree05b8ffe13e98f3d8142bddd8e3236b9f33c5ffc8
parent245b65adcc2aa73201624a4ab09612f6acc8dc56
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
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/constant6.C [new file with mode: 0644]