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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to