[llvm-bugs] [Bug 42532] New: [libclang] Infinite recursion when trying to evaluate alignof of a typedef of a template parameter.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 8 02:09:25 PDT 2019


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

            Bug ID: 42532
           Summary: [libclang] Infinite recursion when trying to evaluate
                    alignof of a typedef of a template parameter.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: emilio at crisal.io
                CC: klimek at google.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

See https://github.com/rust-lang/rust-bindgen/issues/1590

Test-case is:

template <typename d> class e {
  using f = d;
  static const auto g = alignof(f);
};

Trying to evaluate the cursor for `g` hangs as noted in that bug report.

-- 
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/20190708/9130326f/attachment.html>


More information about the llvm-bugs mailing list