[LLVMbugs] [Bug 8832] New: missed switch case for IndirectField in DeclContextPrinter::PrintDeclContext

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 20 05:28:40 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=8832

           Summary: missed switch case for IndirectField in
                    DeclContextPrinter::PrintDeclContext
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: gui-tuning at yandex.ru
                CC: llvmbugs at cs.uiuc.edu


rev 122242

cl: clang -cc1 -fms-extensions -print-decl-contexts !.c

!.c:
struct S
{
 struct { int a; int b; };
} s;

result: "Assertion failed: 0 && "decl unhandled", file AstConsumers.cpp, line
417

solution:
add switch case for IndirectField after line 415.

//    case Decl::IndirectField: 
//       {
//          IndirectFieldDecl *ifd = cast<IndirectFieldDecl>(*I);
//          Out << "<indirect field> " << ifd << '\n';
//          break;
//       }

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list