This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

internal error


Hi

Making 'g++ -c bug.cpp' where 'bug.cpp' is:

--------------------------
struct X 
{
	void f(int, int, int, int) {}
};

class A {
public:
	A();
};

class B
{
public:
	virtual void aaaaaaaa(X &p) 
	{
		p.f(0,0,0,0);
	};
}

A::A()
{
};
---------------------

using:
------
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/specs
gcc version egcs-2.91.60 Debian 2.1 (egcs-1.1.1 release)
-----

produces:
------
bug.cpp:20: Internal compiler error.
bug.cpp:20: Please submit a full bug report to `egcs-bugs@cygnus.com'.
bug.cpp:20: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
------

And so did I.

Of course after putting a semicolon at the end of class B definition,
where one should be, everything compiles without errors.
But it took a little time exactly when I didn't have much.

no to pa,                       
         Trombka                | UWAGA! List bez znaku wodnego 
<trombka@prioris.im.pw.edu.pl>  | i hologramu jest nieważny.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]