Please consider this document:
\documentclass{report}
\usepackage[portuguese]{babel}
\DeclareTextAccent{\'}{EU1}{"00B4}
\begin{document}
\chapter{Introduction}
\end{document}
If I try to compile it using XeLaTeX, then I get this error message:
! TeX capacity exceeded, sorry [input stack size=5000].
\'->\EU1-cmd \'
\EU1\'
l.5 \chapter{Introduction}
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
This occurs only if I use the Babel package with the portuguese
option. I tried with other languages and all goes well.
What can I do to avoid this error?