commit | 866f1cd6a9146b3ee6ed012c0d90e02bc96d4e16 | [log] [tgz] |
---|---|---|
author | Younan Zhang <zyn7109@gmail.com> | Wed May 14 11:45:33 2025 +0800 |
committer | GitHub <noreply@github.com> | Wed May 14 11:45:33 2025 +0800 |
tree | 8e8842e82c294fa843116a6f6f1b9f28a61e2793 | |
parent | 036d637a1dc7be4af6178d4a4df32adaffbd9015 [diff] |
[Clang] Stop changing DC when instantiating dependent friend specializations (#139436) Since 346077aa, we began using the primary template's lexical DeclContext for template arguments in order to properly instantiate a friend definition. There is a missed peculiar case, as in a friend template is specialized within a dependent context. In this scenario, the primary template is not a definition, whereas the specialization is. So the primary template's DeclContext doesn't provide anything meaningful for instantiation. Fixes https://github.com/llvm/llvm-project/issues/139052
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.