Review Board 2.0.15


scons: Add warning for overloaded virtual functions

Review Request #1718 - Created Feb. 13, 2013 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 9524:820b33041411
---------------------------
scons: Add warning for overloaded virtual functions

A derived function with a different signature than a base class
function will result in the base class function of the same name being
hidden. The parameter list and return type for the member function in
the derived class must match those of the member function in the base
class, otherwise the function in the derived class will hide the
function in the base class and no polymorphic behaviour will occur.

This patch addresses these warnings by ensuring a unique function name
to avoid (unintentionally) hiding any functions.
All regressions passing (excluding t1000 and eio)
Review request changed
Updated (Feb. 18, 2013, 7:11 p.m.)

Status: Closed (submitted)