If I attempt to comile the following program, g++ gets into an infinite loop. I also get the following error messages, which I include just as a check to make sure that we are on the same page. The bug is not the error messages. The bug is that the compiler gets into an infinite loop. nocompile.cpp:8: syntax error before `;' token nocompile.cpp:3: ISO C++ forbids declaration of `KHTMLViewPrivate' with no type nocompile.cpp:3: ISO C++ forbids declaration of `KHTMLViewPrivate' with no type nocompile.cpp: In destructor `KHTMLViewPrivate::~KHTMLViewPrivate()': nocompile.cpp:5: parse error before `;' token Release: 3.0.3 Environment: System: Linux baldur 2.5.3 #3 SMP Thu Jan 31 03:16:45 PST 2002 i686 unknown Architecture: i686 Linux-2.5.3, glibc-2.2.5 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: /usr/src/devel/compilers/gcc/configure --prefix=/usr : (reconfigured) How-To-Repeat: Attempt to this program with g++ -c: class QScrollView; struct KHTMLViewPrivate { ~KHTMLViewPrivate() { } QScrollView::ScrollBarMode hmode; };
Fix: Unknown
State-Changed-From-To: open->closed State-Changed-Why: With 3.1 prerelease, I get errors but no infinite loop, so it appears this is fixed, or it was a problem with your configuration (the instructions strongly discourage using --prefix=/usr unless you are a system vendor). 207% cat 5564.cc class QScrollView; struct KHTMLViewPrivate { ~KHTMLViewPrivate() { } QScrollView::ScrollBarMode hmode; }; 208% g++ -c 5564.cc 5564.cc:8: syntax error before `;' token 5564.cc:3: ISO C++ forbids declaration of `KHTMLViewPrivate' with no type 5564.cc:3: ISO C++ forbids declaration of `KHTMLViewPrivate' with no type 5564.cc: In destructor `KHTMLViewPrivate::~KHTMLViewPrivate()': 5564.cc:5: parse error before `;' token 209%