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

             Bug #: 11416
           Summary: Assertion `NewTemplateDecl && "Template/non-template
                    mismatch"' failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


extern "C" {
        namespace CGAL {
                template <class R> class Sphere_d;
                template <class R> bool equal_as_sets(const Sphere_d<R>&, const
Sphere_d<R>&);
                template <class R> class Sphere_d_rep {
                        friend bool equal_as_sets <>     (const Sphere_d<R>&,
const Sphere_d<R>&);
                };
        }
}

$ clang++ -fsyntax-only a.ii
clang: /data/repos/llvm/tools/clang/lib/Sema/SemaDecl.cpp:5577: bool
clang::Sema::CheckFunctionDeclaration(clang::Scope*, clang::FunctionDecl*,
clang::LookupResult&, bool): Assertion `NewTemplateDecl &&
"Template/non-template mismatch"' failed.
...

(this was produced by delta while investigating something else)

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