This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/23104] [4.2/4.3/4.4 Regression] C does not reject the same function in two different TUs with -combine



------- Comment #12 from nightstrike at gmail dot com  2008-07-14 17:09 -------
On 4.2.4 and 4.3.1, I get this:

$  cat > a.c
int f(void) {}

$  cat > b.c
int f(void) {}

$ /opt/cfarm/release/4.3.1/bin/gcc -combine a.c b.c
a.c:2: error: redefinition of 'f'
a.c:1: error: previous definition of 'f' was here


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23104


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]