The Charger feat (PHB, p. 165) says:
When you use your action to Dash, you can use a bonus action to make one melee weapon attack or to shove a creature.
If you move at least 10 feet in a straight line immediately before taking this bonus action, you either gain a +5 bonus to the attack’s damage roll (if you chose to make a melee attack and hit) or push the target up to 10 feet away from you (if you chose to shove and you succeed).
Can you use a reach weapon to make the bonus-action attack granted by the Charger feat?
I'm wondering about making one melee attack with a pike, after moving the required 10 feet. Example: The foe is 40 feet away; I Dash 30 feet towards him in a straight line with my action, and then I make a melee attack with my bonus action, using the pike's 10-foot reach.
(I'm not asking about the shove option for the bonus action - simply the first part about using a bonus action to make one melee attack.)