public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* casting problem
@ 1998-08-14 12:28 Mark Smeets
  1998-08-15 13:43 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Smeets @ 1998-08-14 12:28 UTC (permalink / raw)
  To: egcs-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: casting problem
  1998-08-14 12:28 casting problem Mark Smeets
@ 1998-08-15 13:43 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 1998-08-15 13:43 UTC (permalink / raw)
  To: smeets; +Cc: egcs-bugs

Mark Smeets <smeets@busoni.iaehv.nl> writes:

> bug.cc:12: Internal compiler error.

> class Dummy { public: Dummy() {;} ~Dummy() {;} };
> main() { Dummy x; int y = static_cast<int>(x); }

The latest snapshot of egcs says:

test.cc: In function `int main()':
test.cc:12: static_cast from `Dummy' to `int'

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-08-15 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-14 12:28 casting problem Mark Smeets
1998-08-15 13:43 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).