[llvm-bugs] [Bug 41747] New: AST Printer doesn't print nested name specifier for out of scope record definitions

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 5 04:35:38 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41747

            Bug ID: 41747
           Summary: AST Printer doesn't print nested name specifier for
                    out of scope record definitions
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm at dyatkovskiy.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 21893
  --> https://bugs.llvm.org/attachment.cgi?id=21893&action=edit
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!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190505/334bce4c/attachment-0001.html>


More information about the llvm-bugs mailing list