llvm / llvm/llvm-project

[clang] "incomplete type 'const A' is not a literal type" for a static constexpr data member

Open
#162,027 3 comments 0 reactions 0 assignees View on GitHub
clang:frontend constexpr diverges-from:gcc
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Contributor guide

Open the contributing guide

Research direction

Begin with the minimal C++ snippet and Godbolt link, comparing Clang and GCC behavior. Trace Clang's handling of the static constexpr member while A is incomplete and determine whether the diagnostic matches the language rules. Done means the issue is resolved with behavior or a diagnostic justified by the standard.

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
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.