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++/31300] undetected class name clash



------- Comment #9 from bangerth at dealii dot org  2007-03-26 15:17 -------
(In reply to comment #8)
> but I guess it could be possible at link time, as it is already the case 
> for C symbols.

We also don't do that in C: if you have two functions of the same name defined
in two different .c files and link the result together, there is no guarantee
which one is going to be called unless you marked the functions as static.


> There is already patent  about this  :
> http://www.freepatentsonline.com/6149318.html

As always in free software, you're welcome to implement those suggestions
in gcc and contribute the results back to the project.

W.


-- 


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


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