Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11338: mingw warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-05 09:47:25
#11338: mingw warnings
--------------------------------------+---------------------
Reporter: victor bombi <sonoro@â¦> | Owner: viboes
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------+---------------------
Comment (by eldiener):
The clang explanation is:
[dcl.link]/6: "At most one function with a particular name can have C
language linkage. Two declarations for a function with C language linkage
with the same function name (ignoring the namespace names that qualify it)
that appear in different namespace scopes refer to the same function."
[basic.link]/10: "the types specified by all declarations referring to a
given variable or function shall be identical"
So the program is ill-formed because the same function is declared with
two different types.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11338#comment:9> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC