<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - struct DefinitionData &clang::CXXRecordDecl::data() const: Assertion `DD && "queried property of class with no definition"' failed"
   href="https://bugs.llvm.org/show_bug.cgi?id=48307">48307</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>struct DefinitionData &clang::CXXRecordDecl::data() const: Assertion `DD && "queried property of class with no definition"' failed
          </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>enhancement
          </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>chenyang@cs.utah.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following code triggered an assertion failure. It might be a dup of bug
12777.

$ cat foo.cc 
namespace NS  {
template<typename T> struct S {
  struct S1;
  struct S2;
  struct S3 : public S1, public S2 {};
};
}

$ clang -v
clang version 12.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
75f50e15bf8fff6fba1d4678adedd33ef6a945e5)
Target: x86_64-unknown-linux-gnu
Thread model: posix

$ clang -c foo.cc 
clang:
/backup/work/compilers/compiler-source/llvm-project/clang/include/clang/AST/DeclCXX.h:434:
struct DefinitionData &clang::CXXRecordDecl::data() const: Assertion `DD &&
"queried property of class with no definition"' failed.
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments:
/backup/work/compilers/compiler-install/llvm-12.0.0-dev/bin/clang -c foo.cc
1.      foo.cc:5:36: current parser token '{'
2.      foo.cc:1:1: parsing namespace 'NS'
3.      foo.cc:2:22: parsing struct/union/class body 'NS::S'
4.      foo.cc:5:3: parsing struct/union/class body 'NS::S::S3'
...</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>