[LLVMbugs] [Bug 7804] New: crash calling getSourceRange

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 3 14:56:24 PDT 2010


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

           Summary: crash calling getSourceRange
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Try calling getSourceRange() on every AST node in this short program:

  template<typename _CharT, typename _Traits, typename _Alloc,
           template <typename, typename, typename> class _Base>
  class __versa_string : private _Base<_CharT, _Traits, _Alloc> {};

The problem is the TemplateTemplateParmDecl which has a NULL TemplateDecl
member. I don't think that's supposed to be possible.

-- 
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