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

2010-09-08 Thread justchecking8964 at gmail dot com
.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: justchecking8964 at gmail dot com GCC build triplet: i486-linux-gnu GCC host triplet: i486-linux-gnu GCC target triplet:

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

2010-09-08 Thread justchecking8964 at gmail dot com
--- Comment #2 from justchecking8964 at gmail dot com 2010-09-08 10:30 --- (In reply to comment #1) > You are violating the ODR. > ODR rule relates only to the non-inline functions, which is not the case here, see http://en.wikipedia.org/wiki/One_Definition_Rule : #2: In the

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

2010-09-08 Thread justchecking8964 at gmail dot com
--- 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. ..

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

2010-09-08 Thread justchecking8964 at gmail dot com
--- Comment #6 from justchecking8964 at gmail dot com 2010-09-08 11:00 --- > Your inline functions are extern, not static. Make them static and it > will work. > I see, thanks, I missed the part of the new standard that defines inline as being implicitly extern. There&#x