g95/testsuite> g95 mytest.f90 mytest.f90: In function `MAIN_': mytest.f90:2: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://www.g95.org or mail andyv@firstinter.net for instructions.If you can send a concise test case that compiles with compiler X but not with G95, the bug might be fixed within a few days. A good test case can be just a few lines and might look like:
CHARACTER(LEN=10) :: test(10) write(6,*) ICHAR(test(:)(2:2)) ENDAccepting illegal code is also be a bug that is worth a bug report.
A useful technique for isolating a crash within a large file is based on the binary seach: First make a copy of the source. Then chop out half the code in the file and recompile. If the error goes away, put that half back in and chop out the other half. You have to watch out for creating new errors by deleting needed decarations, in which case you put the original hunk back in and make a more judicious cut the next time. Sometimes with modules it's easier to delete multiple modules procedures at once.
Another trick is to remove IMPLICIT NONE statements, which loosens up the declaration rules a lot.
Usually after less then a dozen iterations, you're left with a code fragment that doesn't do anything useful except trigger the bug. Which is what we want. At some point, you usually start noticing that some modules are no longer needed and the USE statement can be deleted. The general technique remains the same-- delete something and if the error persists, you deleted something that wasn't necessary for the bug to bite.
Happy hunting
Andy Vaught 132 E Brown Road #1053 Mesa, Arizona 85201 United StatesMy favorite beer is an Hefeweizen brewed by the Four Peaks Brewing Company in Tempe, Arizona. As a more available alternate, I am partial to Coronas.
Buy me a beer
Three bucks a glass
Come on somebody
I'm freezing my ass
Buy me a beer
A snifter of wine!
Who am I kidding,
I'll drink turpentine!
B. Gumbel
I don't eat the chocolate raw, but rather make fudge out of it.
I've become quite good at this and it has become my signature dish at
gatherings I attend. Good cooking chocolate is usually pretty dark
and is not like chocolate used in candy bars. People in Asia and Europe occasionally ask about what fudge is. Fudge is a mix of chocolate, marshmellow creme, sugar and butter. Without the chocolate, the rest of the mix forms another candy called taffy, which is usually quite hard and brittle. The chocolate softens the taffy, which provides a base for the chocolate. The result is a soft but solid confection.
Financial contributions are also appreciated.
-------------------------------------------------------------------------- Please email the following information to fsf-records@gnu.org, and we will send you the assignment form for your past and future changes. Please use your full name as the subject line of the message. ---------------------------------------------------------------------- REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES [What is the name of the program or package you're contributing to?] [Did you copy any files or text written by someone else in these changes? Even if that material is free software, we need to know about it.] [Do you have an employer who might have a basis to claim to own your changes? Do you attend a school which might make such a claim?] [For the copyright registration, what country are you a citizen of?] [What year were you born?] [Please write your email address here.] [Please write your postal address here.] [Which files have you changed so far, and which new files have you written so far?]