This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16783] New: Accepts invalid integral constant expression for array size
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2004 13:24:11 -0000
- Subject: [Bug c++/16783] New: Accepts invalid integral constant expression for array size
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
As stated in PR 16711, we accept this code:
----------------
int array [((int)(void*)1)];
----------------
even though the array size is not an integral constant expression.
That's odd, since we reject this expression in various other
places (see PR 16711), but accept it here. We shouldn't.
W.
--
Summary: Accepts invalid integral constant expression for array
size
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16783