This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30583] [ODR] Non-static inline functions cause bugs when defined more than once in different files
- From: "Ivan dot Scherbakov at acronis dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Feb 2007 06:03:33 -0000
- Subject: [Bug c++/30583] [ODR] Non-static inline functions cause bugs when defined more than once in different files
- References: <bug-30583-13987@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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