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++/30583] [ODR] Non-static inline functions cause bugs when defined more than once in different files



------- Comment #3 from Ivan dot Scherbakov at acronis dot com  2007-02-12 06:03 -------
The way of declaring inline functions as static is evident, but in fact, when
building large projects containing several libraries the case when the same
inline function is defined more than once in different libraries and those
libraries fail in a very strange way when linked together is *very hard* to
diagnose.
The proposal was to include a warning/error message when the ODR rule is
violated, as when multiple definitions of an ordinary function are encountered.


-- 

Ivan dot Scherbakov at acronis dot com changed:

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


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


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