From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012
Description of problem:
adding meaningless includes to program causes linker to
compile c++ program with exception handling incorrectly
bug reported on both 7.1 and 7.2beta2 as well but when downgrading binutils
to 2.2.10 the problem disappear
Note:This program is done by students here at the university
so I'm not sure about it's copyrights
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.do make on included program and run - output is aborted
2.do g++ *.cpp and run - output is "ill for ex."
Created attachment 34221 [details]
the sources of bug causing program
This has nothing to do with the linker (plus I'm not aware of binutils 2.2.10).
Instead of printing Ill for ex. test.cpp should print ilfe.getMessage() so
that you'd know txt1 has a missing = in it.
1] binutils 22.214.171.124-1 comes with redhat 7.0
2]txt1 was supposed to cause exception
in one case - it caught(with binutils 2.10)
in second doesn't (win binutils 2.11)
and program aborted