This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17150] New: Ugly diagnostics for invalid variably modified type
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2004 13:01:00 -0000
- Subject: [Bug c++/17150] New: Ugly diagnostics for invalid variably modified type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This test case posted for PR 17148:
struct A {};
struct B : A
{
static int foo() { return 1; }
int i[B::foo()];
};
produces the ugly diagnostic:
test.cc:6: error: data member may not have variably modified type `int [(((long
unsigned int)(((long int)B::foo()) - 1)) + 1u)]'
with g++ 3.5.0 20040815 on alphaev68-unknown-linux-gnu.
--
Summary: Ugly diagnostics for invalid variably modified type
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17150