[LLVMbugs] [Bug 8022] New: clang c++ assertion "Invalid Scope." on invalid template using directive

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 29 12:38:04 PDT 2010


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

           Summary: clang c++ assertion "Invalid Scope." on invalid
                    template using directive
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Testcase:
struct A {
template <typename T> void f (T);
};
class B : A {
template <typename T> using A::f <T>;
};

Assertion:
clang: SemaDeclCXX.cpp:3571: virtual clang::Decl*
clang::Sema::ActOnUsingDeclaration(clang::Scope*, clang::AccessSpecifier, bool,
clang::SourceLocation, clang::CXXScopeSpec&, clang::UnqualifiedId&,
clang::AttributeList*, bool, clang::SourceLocation): Assertion `S->getFlags() &
Scope::DeclScope && "Invalid Scope."' failed.

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