<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 --- - VarDecl::checkInitIsIce() !Init->isValueDependent Assertion failure"
   href="https://llvm.org/bugs/show_bug.cgi?id=26134">26134</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>VarDecl::checkInitIsIce() !Init->isValueDependent Assertion failure
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>saugustine@google.com
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This looks quite similar to these bugs, but they have been marked fixed for a
while. So this is either a regression, or a new code path.

<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion `!Init->isValueDependent()' failed."
   href="show_bug.cgi?id=13988">https://llvm.org/bugs/show_bug.cgi?id=13988</a>
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion `!Init->isValueDependent()' failed."
   href="show_bug.cgi?id=14615">https://llvm.org/bugs/show_bug.cgi?id=14615</a>

The following code and command line results in an assertion failure at inside a
debug copy of trunk:

clang++ orig.ii -std=gnu++11

template<typename GebpKernel, bool UseRotatingKernel =
GebpKernel::UseRotatingKernel>
struct PossiblyRotatingKernelHelper {};

template<bool B> struct gebp_kernel {
  void f() { PossiblyRotatingKernelHelper<gebp_kernel>
possiblyRotatingKernelHelper; }
  static const bool UseRotatingKernel = B;
};

clang-3.8:
/usr/local/google/home/saugustine/llvm/llvm/tools/clang/lib/AST/Decl.cpp:2181:
bool clang::VarDecl::checkInitIsICE() const: Assertion
`!Init->isValueDependent()' failed.

....

Incidentally, if I comment out this assertion, an identical one fires very soon
after, and if I comment out that one, another identical one fires very soon
after.</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>