<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 - AST Printer doesn't print nested name specifier for out of scope record definitions"
   href="https://bugs.llvm.org/show_bug.cgi?id=41747">41747</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AST Printer doesn't print nested name specifier for out of scope record definitions
          </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>All
          </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>llvm@dyatkovskiy.com
          </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>Created <span class=""><a href="attachment.cgi?id=21893" name="attach_21893" title="Patch with bug fix.">attachment 21893</a> <a href="attachment.cgi?id=21893&action=edit" title="Patch with bug fix.">[details]</a></span>
Patch with bug fix.

For this example:
   struct DeclEnclosing {
       struct DeclMember;  
   };
struct DeclEnclosing::DeclMember {};

it will print (command line: "clang -cc1 -xc++ <file> -ast-print"):

   struct DeclEnclosing {
       struct DeclMember;
   };

   struct DeclMember {
   };

"DeclEnclosing::" prefix is missed.

I have a patch, please find it in attachment. Please let me know if we need to
move it into phabricator.
Thanks!</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>