<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:stephan.bergmann.secondary@googlemail.com" title="Stephan Bergmann <stephan.bergmann.secondary@googlemail.com>"> <span class="fn">Stephan Bergmann</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Bogus "error: no return statement in constexpr function" when void return type is "templated""
   href="https://bugs.llvm.org/show_bug.cgi?id=41896">bug 41896</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Bogus "error: no return statement in constexpr function" when void return type is "templated""
   href="https://bugs.llvm.org/show_bug.cgi?id=41896#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Bogus "error: no return statement in constexpr function" when void return type is "templated""
   href="https://bugs.llvm.org/show_bug.cgi?id=41896">bug 41896</a>
              from <span class="vcard"><a class="email" href="mailto:stephan.bergmann.secondary@googlemail.com" title="Stephan Bergmann <stephan.bergmann.secondary@googlemail.com>"> <span class="fn">Stephan Bergmann</span></a>
</span></b>
        <pre>(In reply to Eli Friedman from <a href="show_bug.cgi?id=41896#c2">comment #2</a>)
<span class="quote">> Oh, right... "std::enable_if<true, void>" isn't void, it's a class type.  So
> clang is doing the right thing for your testcase: g() can't be called in a
> constexpr context.</span >

Oops, right, I had started from a wrongly reduced test case (I should have used
std::enable_if_t instead of std::enable_if) and then drew wrong conclusions. 
(See <<a href="https://gcc.gnu.org/ml/libstdc++/2019-05/msg00151.html">https://gcc.gnu.org/ml/libstdc++/2019-05/msg00151.html</a>> "Re: [PATCH]
Define std::__invoke_r for INVOKE<R>" for details.)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>