Compling code that uses macro with the rangepos option produces errors like this: scala.tools.nsc.interactive.RangePositions$ValidateException: Synthetic tree [251] contains nonsynthetic tree [250] A demo project can be found here: https://github.com/thirstycrow/macro-rangepos-problem