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]

Re: casting problem


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



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