This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13699] Extern "C" routine in different namespaces is not the same entity
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2004 15:29:54 -0000
- Subject: [Bug c++/13699] Extern "C" routine in different namespaces is not the same entity
- References: <20040115151637.13699.grigory.zagorodnev@intel.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-01-15 15:29 -------
Confirmed.
The compiler treats the two declarations as the same function, though.
This is evidenced by this program:
---------------------
namespace A {
extern "C" void foo() throw();
void f() { foo(); }
}
extern "C" void foo();
void f() { foo(); }
---------------------
Both versions of f() should call the same function foo, and they
indeed do if one looks at the assembler output.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2004-01-15 15:29:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13699