<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - max(initializer_list<T>) not constexpr"
   href="https://llvm.org/bugs/show_bug.cgi?id=24725">24725</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>max(initializer_list<T>) not constexpr
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>cppljevans@suddenlink.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14846" name="attach_14846" title="source file">attachment 14846</a> <a href="attachment.cgi?id=14846&action=edit" title="source file">[details]</a></span>
source file

According to n4527, section 25.4.7, downloadable from here:

<a href="http://open-std.org/JTC1/SC22/WG21/docs/papers/2015/n4527.pdf">http://open-std.org/JTC1/SC22/WG21/docs/papers/2015/n4527.pdf</a>

one signature of max is:

template<class T>
constexpr T max(initializer_list<T> t);

However, when the attached is compiled with version 3.6 of clang,
with options:

  -stdlib=libc++  -std=c++14

I get the errors shown in 2nd attachment.

BTW, with clang3.5, it compiled OK.</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>