Bug 11649 - Links do not work with #import
Summary: Links do not work with #import
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: preprocessor (show other bugs)
Version: unknown
: P2 normal
Target Milestone: 3.4.0
Assignee: Neil Booth
URL:
Keywords: wrong-code
: 11650 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-23 21:01 UTC by Real Name
Modified: 2003-07-29 22:30 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2003-07-23 21:09:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Real Name 2003-07-23 21:01:32 UTC
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.
Comment 1 Andrew Pinski 2003-07-23 21:09:00 UTC
#import is known not be work work with symlinks, there is a currently rewrite by Geoff Keating.
Comment 2 Andrew Pinski 2003-07-23 21:11:25 UTC
Changing this to mark as not working for links in general.
Comment 3 Andrew Pinski 2003-07-23 21:12:18 UTC
*** Bug 11650 has been marked as a duplicate of this bug. ***
Comment 4 Neil Booth 2003-07-23 23:20:02 UTC
I'm fixing this one.