[CMake] 1 tricky question, 1 bug report
Maik Beckmann
beckmann.maik at googlemail.com
Mon Mar 16 11:21:27 EDT 2009
Brad King schrieb am Montag 16 März 2009 um 15:48:
> Maik Beckmann wrote:
> > I still didn't test whether fixed format file can include a free format
> > file, or vise versa. In this case having distinct lexers(and parsers?)
> > is the only reliable approach.
>
> I just tried these cases and gcc chokes on both cases:
>
> ! main-free.f90
> include 'fixed.f'
>
> ! main-fixed.f
> include 'free.f'
>
> In either case gcc assumes the included file is the same format as the
> includer and errors out if the file is really of the other format.
Which means we can set the format start state once and safely parse included
files recursively. Two distinct parser aren't needed.
Thanks,
-- Maik
More information about the CMake
mailing list