This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bizzare segmentation violation
- From: Tony Bryant <brd at paradise dot net dot nz>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 21 Jun 2002 22:49:28 +1200
- Subject: Bizzare segmentation violation
- Organization: Bryant Research & Development
I've a piece of C++ code here that causes an "Internal compiler error:
segmentation violation" when complied with yesterday's mainline GCC.
Strange thing is that
"sh-elf-g++ -c mycode.cc"
doesn't work,
but
"sh-elf-g++ -E mycode.cc -o tmp/mycode.cc"
"sh-elf-g++ -c tmp/mycode.cc -o mycode.o"
works fine! It runs fine too.
This makes it pointless to submit a bug report.
It looks like something happening in the preprocessing is corrupting
something vital down the line.
This program makes heavy use of STL, so there is very heavy use of nested
includes. Am I hitting some sort of implicit limit in the preprocessor?
Nesting depth or numbers of symbols or something?
Any guesses, places to start looking, or even wild theories would be much
appreciated...
Regards,
Tony Bryant.