------- Comment #8 from joseph at codesourcery dot com 2005-10-31 01:16 ------- Subject: Re: [4.0/4.1 Regression] cpp error messages contain wrong line in C++
On Mon, 31 Oct 2005, mmitchel at gcc dot gnu dot org wrote: > Overall, the Weinberg/Austern patch to improve compilation speed by reading in > all the tokens upfront has indeed caused several diagnostic issues, all > relating to the fact that we rely on cpplib to tell us about our current > location, and that's no longer possible. We need to explore whether there's a > good way to recover that information, having pre-scanned the file. ... and without causing other problems with diagnostic location such as diagnostics appearing where NULL is defined instead of where it is used. Zack's patch which ran into that issue (mentioned in comment#3) is <http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00394.html>. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17964