[LLVMbugs] [Bug 5732] New: friend class method declaration fails

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Dec 9 01:39:10 PST 2009


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

           Summary: friend class method declaration fails
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mainmanmauricio at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Trying to compile a boost header on Linux x84_64 with clang++ from today's
trunk, crashes with:

clang-cc: SemaLookup.cpp:528: bool
clang::Sema::CppLookupName(clang::LookupResult&, clang::Scope*): Assertion `Ctx
&& Ctx->isFileContext() && "We should have been looking only at file context
here already."' failed.

A minimal program reproducing the issue follows:

namespace boost
{
   class exception;

   namespace exception_detail
   {
      char const * get_diagnostic_information( exception const & );
   }

   class exception
   {
      friend class exception_detail;  // works

      friend char const * 
             exception_detail::get_diagnostic_information
             ( exception const & );  // fails
   };
}


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