isnt the syntax supposed to be as follow:
      DDRx |= PORTxn
where,
x = port number/alphabet
n = bit number

hence, 
DDRD = (1<<PORTD6);