I want to make a table inside another table as follows. Unfortunately, it does not work. What is wrong with it?
\documentclass{minimal}
\usepackage{array,longtable,calc}
\begin{document}
\begin{longtable}{*{2}{m{0.5\linewidth}}}
%
\begin{longtable}%
{*{2}{m{0.5\linewidth}}}
A & B\tabularnewline
C & D\tabularnewline
\end{longtable}%
& E \tabularnewline
F & G \tabularnewline
\end{longtable}
\end{document}
EDIT 1
Based on @Herbert's suggestion to use tabular for the inner table, here is my modification. However, the rule does not appear. :-)
\documentclass{minimal}
\usepackage{array,longtable,calc}
\begin{document}
\begin{longtable}{|*{2}{m{0.5\linewidth}|}}
\hline%
\begin{tabular}%
{|*{2}{m{0.5\linewidth}|}}
\hline%
A & B\tabularnewline\hline
C & D\tabularnewline\hline
\end{tabular}%
& E \tabularnewline\hline
F & G \tabularnewline\hline
\end{longtable}
\end{document}

