This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: template map value_type bug
> because "value_type" is not recognized as a type even though
> "key_type" is. A declaration of C without using any templates
> at all compiles correctly.
Thanks for your bug report. This is not a bug in the compiler, but in
your code. Compile with -pedantic to see that this is a g++ extension
which only applies to key_type, as value_type is also known globally.
Use typename to correct this code.
Regards,
Martin