Symlinks don't work with #import; they work with 2.95. I found out becuase bug compiling, but could generate testcase: create file test1.h with following content: #warning "File imported" create file test2.h as symlink to test1.h: ln -s test1.h test2.h compile file main.m: #import "file1.h" #import "file2.h" int main() {exit(0);} 2.95 print "File imported" once, correct; new gcc print "File imported" twice, wrong.
#import is known not be work work with symlinks, there is a currently rewrite by Geoff Keating.
Changing this to mark as not working for links in general.
*** Bug 11650 has been marked as a duplicate of this bug. ***
I'm fixing this one.
Fixed in 3.4. http://gcc.gnu.org/ml/gcc-cvs/2003-07/msg01214.html http://gcc.gnu.org/ml/gcc-patches/2003-07/msg02780.html