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

            Bug ID: 50343
           Summary: Assertion failure in absence of -isysroot ...
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: jacques.legar...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

The following program

   #include <map>

triggers an assert failure when compiled without -isysroot, as in

   $ /Volumes/Data/llvm-project-12.0.0/bld/bin/clang++ stuff.cpp
`/Volumes/Data/llvm-project-12.0.0/bld/bin/llvm-config --cxxflags`

yielding

   Assertion failed: (!CodeSynthesisContexts.empty() && "Cannot perform an
instantiation without some context on the " "instantiation stack"), function
SubstType, file
/Volumes/Data/llvm-project-12.0.0/llvm-project-12.0.0.src/clang/lib/Sema/SemaTemplateInstantiate.cpp,
line 2071.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to