This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45594] g++ incorrectly treats inline function redefinition
- From: "justchecking8964 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2010 11:00:44 -0000
- Subject: [Bug c++/45594] g++ incorrectly treats inline function redefinition
- References: <bug-45594-19670@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 to learn every day.
Sorry for the bother.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45594