At least gcc 4.4.3 seems to get confused by the use of func both as a
template parameter and a member variable in the M5VarArgsFault
class. This causes the value of the member variable func to be
unpredictable in M5VarArgsFault objects. This changeset renames the
template parameter to remove this ambiguity.
}
};
-template <int func>
+template <int Func>
class M5VarArgsFault : public M5DebugFault
{
public:
M5VarArgsFault(const std::string &format, CPRINTF_DECLARATION) :
- M5DebugFault((DebugFunc)func, csprintf(format, VARARGS_ALLARGS))
+ M5DebugFault((DebugFunc)Func, csprintf(format, VARARGS_ALLARGS))
{}
};