This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23104] [4.2/4.3/4.4 Regression] C does not reject the same function in two different TUs with -combine
- From: "nightstrike at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2008 17:09:57 -0000
- Subject: [Bug c/23104] [4.2/4.3/4.4 Regression] C does not reject the same function in two different TUs with -combine
- References: <bug-23104-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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