[llvm-bugs] [Bug 35334] New: clang::Sema::~Sema(): Assertion `DelayedTypos.empty() && "Uncorrected typos!"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 16 13:57:59 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35334

            Bug ID: 35334
           Summary: clang::Sema::~Sema(): Assertion `DelayedTypos.empty()
                    && "Uncorrected typos!"' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stephan.bergmann.secondary at googlemail.com
                CC: Kaelyn.Alexi at gmail.com, llvm-bugs at lists.llvm.org

With recent Clang trunk (towards 6.0, with assertions enabled):

> $ cat test.cc
> template<typename> class C;
> template<typename T> T C<T>::f(T x) { return x; }

> $ clang-6.0 -cc1 -fsyntax-only test.cc
> test.cc:2:30: error: out-of-line definition of 'f' from class 'C<type-parameter-0-0>' without definition
> template<typename T> T C<T>::f(T x) { return x; }
>                        ~~~~~~^
> clang-6.0: clang/lib/Sema/Sema.cpp:362: clang::Sema::~Sema(): Assertion `DelayedTypos.empty() && "Uncorrected typos!"' failed.

There is some other open bugs regarding that assertion (bug 21905, bug 22938,
bug 34507), I'm not sure this is a duplicate of any of those.  Applying Diff
114022 from <https://reviews.llvm.org/D37521> linked from bug 34507 does not
help here.

-- 
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/20171116/e55f87a9/attachment.html>


More information about the llvm-bugs mailing list