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++/17448] Fails to detect duplicate definition


------- Additional Comments From bangerth at dealii dot org  2004-09-13 13:18 -------
ODR violations are cases where your program contains two different 
definitions of the same function. Usually, they are in different 
.cc files (translation units), so the compiler can't see the 
violation, which is why the standard specifically says that no 
diagnostic is required. In this particular case, the compiler could 
do so, though. 
 
W. 

-- 


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


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