Цитата(GetSmart @ Jan 6 2009, 13:39)

Я за то чтобы в таких случаях компилер ругался и не доходил до линковки!
А что же он, по-вашему, делает?
Цитата
Internal Error:
После
Error линковка не производится, ибо не создается объектный файл.
Цитата(GetSmart @ Jan 6 2009, 13:39)

Хотя ошибку он выдаёт дурацкую. Возможно компилер немного не доработан.
Если читать документацию внимательно, то в ней сказано (и из названия ошибки следует), что
Internal Error - внутреняя ошибка (бага) компилятора. В этом случае надо отправлять баг-репорт в IAR:
Цитата
INTERNAL ERROR
An internal error is a diagnostic message that signals that there has been a serious and unexpected failure due to a fault in the compiler. It is produced using the following form:
Internal error: message
where message is an explanatory message. If internal errors occur, they should be reported to your software distributor or IAR Technical Support. Include information enough to reproduce the problem, typically:
● The product name
● The version number of the compiler, which can be seen in the header of the list files
generated by the compiler
● Your license number
● The exact internal error message text
● The source file of the program that generated the internal error
● A list of the options that were used when the internal error occurred.