This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44599] very basic recurring template only works when using g++ -O option
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2010 01:02:57 -0000
- Subject: [Bug c++/44599] very basic recurring template only works when using g++ -O option
- References: <bug-44599-19280@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-20 01:02 -------
I think this code is undefined as the type of this at the point which getI is
called is only Interface<S>* and not S* as f takes a non pointer/reference type
of Interface<C>.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44599