Bug 5564 - g++-3.0.3 infinite loop
Summary: g++-3.0.3 infinite loop
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.0.3
: P3 normal
Target Milestone: 3.1.x/3.2.x
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-31 23:56 UTC by adam
Modified: 2006-02-07 14:34 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adam 2002-01-31 23:56:01 UTC
	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;
};
Comment 1 adam 2002-01-31 23:56:01 UTC
Fix:
	Unknown
Comment 2 Phil Edwards 2002-04-19 13:38:07 UTC
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%