Deductions & credits

line 8 would be wrong. it should be line 7 which is capital gains if you have only capital gain dividends the schedule D not required box is checked.  if you also have security sales capital gain dividends should flow to line 13 of schedule D 

 

if they're appearing on line 8 you made an incorrect entry somewhere because they should be reported on 1099-DIV line 2a