[LLVMbugs] [Bug 20251] New: Clang assertion failure on ill-formed code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 8 14:38:59 PDT 2014


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

            Bug ID: 20251
           Summary: Clang assertion failure on ill-formed code
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rtrieu at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

test.cpp:
template <typename T>
class B
{
  template <typename U>
  friend B<U>() {}
};

commandline:
clang -cc1 -fsyntax-only test.cpp

assertion:
tools/clang/lib/Sema/SemaDecl.cpp:6432
Assertion `DC->isRecord() && "Constructors can only be declared in a member
context"' failed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140708/2e6dc060/attachment.html>


More information about the llvm-bugs mailing list