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

2010-09-08 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-09-08 12:21 --- new? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45594

[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's something new

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

2010-09-08 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-09-08 10:42 --- (In reply to comment #4) > (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 #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 t

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

2010-09-08 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-09-08 10:34 --- (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. ... -- rguenth at gcc dot gnu dot org changed: What

[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 entire p

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

2010-09-08 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-09-08 09:20 --- You are violating the ODR. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added