[Bug c++/17150] New: Ugly diagnostics for invalid variably modified type
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 23 13:01:00 GMT 2004
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
More information about the Gcc-bugs
mailing list