Bug#291374: g++-3.3: nested struct with arrays initialisation asked for bugreport
Package: g++-3.3
Version: 1:3.3.5-6
Severity: normal
g++ choke-up on the following code and asked for bugreport.
The code is not neccesserelly correct, but I could not work arround it
(I want to initialize an array of strings in structure).
struct mystruct {
int i;
char* s[];
};
struct mystruct arr[] = {
{
1, { "first", "second" }
},
{
2, { "third", "fourth" }
}
};
int main(){
return 0;
}
g++-2.95 says "excess elements in aggregate initializer", so I would expect
similar from g++-3.3.
best regards,
marius
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages g++-3.3 depends on:
ii gcc-3.3 1:3.3.5-6 The GNU C compiler
ii gcc-3.3-base 1:3.3.5-6 The GNU Compiler Collection (base
hi libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libstdc++5-3.3-dev 1:3.3.5-6 The GNU Standard C++ Library v3 (d
-- no debconf information
Reply to: