[LLVMbugs] [Bug 14861] New: "Assertion failed: (!D || D->CachedLinkage == CachedLinkage)" on g++.dg/opt/inline2.C

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 8 20:48:38 PST 2013


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

             Bug #: 14861
           Summary: "Assertion failed: (!D || D->CachedLinkage ==
                    CachedLinkage)" on g++.dg/opt/inline2.C
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, rafael.espindola at gmail.com
    Classification: Unclassified


Given this testcase:

static void g ();
void f()
{
  void g();
  g();
}
void g()
{
}
int main () {
  f ();
}

clang crashes with:
Assertion failed: (!D || D->CachedLinkage == CachedLinkage), function
getLinkageAndVisibility, file [...]/llvm/tools/clang/lib/AST/Decl.cpp, line
667.

I think this is a recent regression.

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