This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49153] Compile error with template metafunctions (starting with 4.5.x)
- From: "dizzy at roedu dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 May 2011 16:54:20 +0000
- Subject: [Bug c++/49153] Compile error with template metafunctions (starting with 4.5.x)
- Auto-submitted: auto-generated
- References: <bug-49153-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49153
--- Comment #3 from dizzy at roedu dot net 2011-05-25 16:53:52 UTC ---
Indeed it seems a problem with the code because of the semantics of the
injected class names.
Namely that a nested (in MetaBind1st) struct "type" is defined which
incidentally inherits a nested typedef "type". The injected class name of the
struct ("type") will hide the inherited nested typedef ("type") and thus when
trying to locate it with "AppenderTypeList<Test>::Function<NullType>::type" it
will find the injected class name of the "type" struct instead of the nested
inherited typedef.
Sorry for the spam.