llvm / llvm/llvm-project

[clang] compiling `int x = (::h);` in C mode causes infinite loop

Open
#195,367 3 comments 0 reactions 0 assignees View on GitHub
c clang:frontend hang regression:17
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Repro in title.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the title's case, `int x = (::h);`, while compiling in C mode with clang. Trace the compiler's progress to identify where it loops; done means this input no longer hangs and the relevant regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.