Re: test_exception_handlers.cpp fails to compile with clang 3.2 (#13)

Michael Steinberg <[email protected]> Thu, 20 Feb 2014 16:56:20 +0100
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============3141860027529424178==
Content-Type: multipart/alternative;
	boundary="------------050805050903060906030702"

This is a multi-part message in MIME format.
--------------050805050903060906030702
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Am 20.02.2014 16:40, schrieb Nicolas:
> |In file included from ../test/test_exception_handlers.cpp:7:
> In file included from ../luabind/luabind.hpp:27:
> In file included from ../luabind/class.hpp:89:
> ../luabind/function.hpp:28:43: error: no matching function for call to 'deduce_signature'
>           object fn = make_function(L, f, deduce_signature(f), policies);
>                                           ^~~~~~~~~~~~~~~~
> ......
> ../luabind/detail/deduce_signature.hpp:60:1: note: candidate function template not viable: requires 2 arguments, but 1 was provided
> deduce_signature(F, Wrapped*)
> ^|
Does this come off either "raise" or "raise_derived" definitions? That
implicit attribute "noreturn" generated (I assume that is generated
because clang detected these functions will never return) seems to
prevent the match to "void (*)()" (but would match to a generic template
type F). I wonder if what clang does there is legal (ie. mismatch due to
implicitly added attribute)?

--------------050805050903060906030702
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Am 20.02.2014 16:40, schrieb Nicolas:<br>
    </div>
    <blockquote cite="mid:rpavlik%2Fluabind%2Fissues%[email protected]"
      type="cite">
      <pre><code>In file included from ../test/test_exception_handlers.cpp:7:
In file included from ../luabind/luabind.hpp:27:
In file included from ../luabind/class.hpp:89:
../luabind/function.hpp:28:43: error: no matching function for call to 'deduce_signature'
          object fn = make_function(L, f, deduce_signature(f), policies);
                                          ^~~~~~~~~~~~~~~~
......
../luabind/detail/deduce_signature.hpp:60:1: note: candidate function template not viable: requires 2 arguments, but 1 was provided
deduce_signature(F, Wrapped*)
^</code>
</pre>
    </blockquote>
    Does this come off either "raise" or "raise_derived" definitions?
    That implicit attribute "noreturn" generated (I assume that is
    generated because clang detected these functions will never return)
    seems to prevent the match to "void (*)()" (but would match to a
    generic template type F). I wonder if what clang does there is legal
    (ie. mismatch due to implicitly added attribute)?<br>
  </body>
</html>

--------------050805050903060906030702--


--===============3141860027529424178==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
--===============3141860027529424178==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user

--===============3141860027529424178==--