etie...@pc300:~$ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.3.2 (Debian 4.3.2-1) etie...@pc300:~$ cat tmp.c struct id_struct { unsigned char is_ip_addrs[4]; };
struct addr_struct { unsigned short family; unsigned short port; struct id_struct id; char *name; }; int main (int argc, char **argv) { struct addr_struct tmp_addr_struct = { family: 1, port: 666, id: 0, name: (char []){"psig TCP"} }; return 2; } etie...@pc300:~$ gcc tmp.c etie...@pc300:~$ g++ tmp.c 2> log ^C etie...@pc300:~$ head log tmp.c: In function 'int main(int, char**)': tmp.c:21: error: 'id_struct' has no non-static data member named 'id' tmp.c:21: error: 'id_struct' has no non-static data member named 'id' tmp.c:21: error: 'id_struct' has no non-static data member named 'id' tmp.c:21: error: 'id_struct' has no non-static data member named 'id' tmp.c:21: error: 'id_struct' has no non-static data member named 'id' tmp.c:21: error: 'id_struct' has no non-static data member named 'id' tmp.c:21: error: 'id_struct' has no non-static data member named 'id' tmp.c:21: error: 'id_struct' has no non-static data member named 'id' tmp.c:21: error: 'id_struct' has no non-static data member named 'id' etie...@pc300:~$ -- Summary: infinite loop on error message in C++ only Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: etienne_lorrain at yahoo dot fr GCC build triplet: i486-linux-gnu GCC host triplet: i486-linux-gnu GCC target triplet: i486-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38928