c++/8442: Wrongful compiler error - file available
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Mon Nov 4 08:56:00 GMT 2002
The following reply was made to PR c++/8442; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: Juan Carlos Arevalo-Baeza <jcab@JCABs-Rumblings.com>
Cc: gcc-bugs@gcc.gnu.org, <gcc-prs@gcc.gnu.org>, <nobody@gcc.gnu.org>,
<gcc-gnats@gcc.gnu.org>
Subject: Re: c++/8442: Wrongful compiler error - file available
Date: Mon, 4 Nov 2002 10:58:35 -0600 (CST)
> Yes, Spirit is a complex beast. I'm sorry about that. I've tried
> extracting the error bits, but I've been uncuccessful so far. It seems
Start from the .ii file you have. First delete all the # lines, I use the
following perl script for that usually
perl -pi -s 's/^#.*\n//g;' your_file.ii
(This way, gcc tells you the real location in the file where something is
happening, not the location in the file from which you generated the .ii
file.) Then start deleting parts of the file that are not necessary to
show the problem. (Function bodies, classes that are only referenced in
the function bodies you deleted, classes and namespaces that were only
used in classes and namespaces you deleted, etc). In the beginning, the
pieces you scrap are usually small, but the blocks can become very large
at the end, so don't be scared if you don't make much progress in the
beginning.
This is a tedious task, and may take an hour or two, but in the end you
usually end up with something that has 10-50 lines of code and still shows
the problem. With such an example, it is also possible for someone who is
not used to your code to see whether this is wrong or right. Otherwise, it
is very hard to see...
Regards
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth
More information about the Gcc-prs
mailing list