[Bug c++/45594] g++ incorrectly treats inline function redefinition

justchecking8964 at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 8 10:40:00 GMT 2010



------- Comment #4 from justchecking8964 at gmail dot com  2010-09-08 10:39 -------
(In reply to comment #3)
> (In reply to comment #2)
> > The case that apply here is discussed in point 3:
> > 
> > #3: ... For a given entity, each definition
> > must be the same. ...
> 

But this applies only to "[...] types, templates, and extern inline functions".

My case is about non-extern inline functions, which "in different translation
units are different entities, even if their names and types are the same."


-- 

justchecking8964 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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



More information about the Gcc-bugs mailing list