This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43719] New: uninitialized const member incorrectly accepted, using an array
- From: "fabien dot chene at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Apr 2010 17:59:01 -0000
- Subject: [Bug c++/43719] New: uninitialized const member incorrectly accepted, using an array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
struct A
{
int const i;
};
void f ()
{
A a; // not accepted: OK
A aa[ 1 ]; // incorrectly accepted
}
--
Summary: uninitialized const member incorrectly accepted, using
an array
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fabien dot chene at gmail dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43719