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++/13699] Extern "C" routine in different namespaces is not the same entity


------- 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


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