This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: casting problem
- To: smeets at busoni dot iae dot nl
- Subject: Re: casting problem
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 15 Aug 1998 17:40:20 -0300
- Cc: egcs-bugs at cygnus dot com
- References: <98081423292302.10460@busoni.iaehv.nl>
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