Create a LyX document which uses underline and export as Latex. Now
import the Latex document. The underline is not 'swallowed' by LyX and
shown as underline, but remains in ERT. Also, the document doesn't
compile. However, if another word is now underlined, then the document
does compile, and the earlier word which caused the problem is correctly
underlined in the pdf.
LyX 2.0, Windows Vista.
Andrew