llvm / llvm/llvm-project

[clang] concepts/require crash clang

Open
#161,348 10 comments 0 reactions 0 assignees View on GitHub
clang:frontend concepts crash-on-valid lambda regression:17
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

In frontend, according to the detection guide.

Reproducible on macos and most new/old clang versions i tried on godbolt(18-21), gcc works all right.

[1.cpp](https://github.com/user-attachments/files/22616814/1.cpp)

Compiler stderr
gmake[2]: *** [CMakeFiles/StdAnyTest.dir/build.make:79: CMakeFiles/StdAnyTest.dir/main.cpp.o] Segmentation fault (core dumped)
--
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple clang version 16.0.0 (clang-1600.0.26.4)

[1-a445e2.sh](https://github.com/user-attachments/files/22616816/1-a445e2.sh)
[1-a445e2.cpp](https://github.com/user-attachments/files/22616817/1-a445e2.cpp)

Contributor guide

Open the contributing guide

Research direction

Start by downloading 1.cpp and the accompanying 1-a445e2.cpp and 1-a445e2.sh files, then reproduce the frontend crash with the reported Clang versions on macOS or Godbolt. Trace the concepts/require compilation path involved; done means the reproducer no longer crashes and Clang produces a normal result or diagnostic.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.