This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45303] Compile error when not using -ftree-ter
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2010 09:38:12 -0000
- Subject: [Bug c++/45303] Compile error when not using -ftree-ter
- References: <bug-45303-19514@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from redi at gcc dot gnu dot org 2010-08-17 09:38 -------
(In reply to comment #1)
> IMHO this isn't a bug, to simplify that into an integer you really need some
> optimizations. The conversion looks very weird, if you use something saner
The conversion uses this extension
http://gcc.gnu.org/onlinedocs/gcc/Bound-member-functions.html
> like (void *)&Foo::foobar, it will even work with -O0.
Does that cast still use the extension?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45303