[llvm-bugs] [Bug 47116] New: Front end crashes when trying to export a type out of a module

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 11 05:47:03 PDT 2020


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

            Bug ID: 47116
           Summary: Front end crashes when trying to export a type out of
                    a module
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vstiago at google.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

https://godbolt.org/z/6fEE3s

I was trying to convert a header file to a module.

The compiler complained that it could export a std:pair of a iterator class
inside a template class (I was trying to emulate the behavior of a stl
container.)

My code is probably wrong because I don't know how modules work but it probably
shouldn't crash.

I found it with clang 10 on ubuntu, but it also happens on trunk (according to
godbolt).

-- 
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/20200811/34bb8955/attachment.html>


More information about the llvm-bugs mailing list