[LLVMbugs] [Bug 11416] New: Assertion `NewTemplateDecl && "Template/non-template mismatch"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 21 14:38:59 PST 2011


             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: unassignedclangbugs at nondot.org
        ReportedBy: marc.glisse at normalesup.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

extern "C" {
        namespace CGAL {
                template <class R> class Sphere_d;
                template <class R> bool equal_as_sets(const Sphere_d<R>&, const
                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.

More information about the llvm-bugs mailing list