This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21665] template template parameter function overload not recognized
- 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: 19 May 2005 14:48:12 -0000
- Subject: [Bug c++/21665] template template parameter function overload not recognized
- References: <20050519141941.21665.johill@lanl.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-19 14:48 -------
This code is invalid, and here is why:
manipulator.reveal ( PROPERTY < int > ( propertyX, pContainer, & MyContainer::x ) );
so you are passing a rvalue to a non constant reference.
This does not compile with ICC also giving the same error.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21665