有谁知道为什么这不会编译?我已经尝试过VS2008和GCC4.something并且都吐出错误。我是否引用“ThisFunctionDoesNotCompile()”并不重要。我可以通过将“InternalType”作为第二个模板参数传递给Base来解决这个问题,但我仍然很好奇为什么这会出现错误。#includeusingnamespacestd;classDataClass{public:intm_data;};templateclassBase{public:intThisFunctionCompiles(){//Noproblemshere.typenameDerivedType