Deductions & credits

If I choose to enter the foreign tax as an expense on  my federal form it automatically carries over to my California return as a "state and local" tax. Does this mean that TT is in error by allowing it?