| commit | f8b96160feb99b3fc37b1857caf2abcfea7e5a06 | [log] [tgz] |
|---|---|---|
| author | Oleksandr T. <oleksandr.tarasiuk@outlook.com> | Thu Nov 07 19:13:04 2024 +0200 |
| committer | GitHub <noreply@github.com> | Thu Nov 07 14:13:04 2024 -0300 |
| tree | 48dc6182a9447d8bbf85d0e7f599cf7047c8a666 | |
| parent | c980cc086989a5910c4e6321063e805f767a3b90 [diff] |
[Clang] skip default argument instantiation for non-defining friend declarations (#113777) This fixes a crash when instantiating default arguments for templated friend function declarations which lack a definition. There are implementation limits which prevents us from finding the pattern for such functions, and this causes difficulties setting up the instantiation scope for the function parameters. This patch skips instantiating the default argument in these cases, which causes a minor regression in error recovery, but otherwise avoids the crash. Fixes #113324
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.