This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
member-pointer-as-template-constructor-argument bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: member-pointer-as-template-constructor-argument bug
- From: Danilov Nikita <NikitaDanilov at Yahoo dot COM>
- Date: Fri, 15 Sep 2000 20:43:48 +0400 (MSD)
Hello,
the following fails with
tmpl.cpp:10: common_type called with uncommon member types (compiler error)
(error from gcc/cp/typeck.c:589).
gcc -v:
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
uname -a:
Linux beta 2.4.0-test6 #5 SMP Чтв Сен 7 22:38:16 MSD 2000 i686 unknown
------------------------------------------------------------------------
template< class S, class V > class Foo
{
public: Foo< S, V >( char bar, const S *baz, V S::*quux );
};
template< class S, class V > Foo< S, V >::Foo( char bar,
const S *baz,
V S::*quux )
{}
------------------------------------------------------------------------
Hope this will help.
Nikita.
--
Mail me: NikitaDanilov@Yahoo.COM Web me: http://nikita.w3.to
PGP: B4DBBD61 4B B8 7B 9D E8 66 04 69 CB BC 76 8F AB 8A 57 02
Unsolicited email to this address is acceptance of a $100 per day
storage fee to be paid within 30 days of the sending of the email.
--
Mail me: NikitaDanilov@Yahoo.COM Web me: http://nikita.w3.to
PGP: B4DBBD61 4B B8 7B 9D E8 66 04 69 CB BC 76 8F AB 8A 57 02
Unsolicited email to this address is acceptance of a $100 per day
storage fee to be paid within 30 days of the sending of the email.