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]

casting problem


Hi,

Thought I'd let you know the following: 

[smeets@busoni ~/test]$ g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)                

[smeets@busoni ~/test]$ g++ bug.cc -o bug
bug.cc: In function `int main()':
bug.cc:12: Internal compiler error.
bug.cc:12: Please submit a full bug report to `egcs-bugs@cygnus.com'.

The file bug.cc looks like this:

#include <string>

class Dummy {
public:
	Dummy() {;}
	~Dummy() {;}
};

main()
{
	Dummy x;
	int y = static_cast<int>(x);
}

Obviously, I shouldn't try to do this cast, but it's too bad this
results in an internal compiler error.

Regards,

Mark Smeets.


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