aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java
diff options
context:
space:
mode:
authorLucas Chollet <lucas.chollet@free.fr>2026-01-26 18:16:53 +0800
committerJason Merrill <jason@redhat.com>2026-01-28 10:31:00 +0800
commit04ec3d4712519e32f85c034ff4237fcd5f9fbe39 (patch)
tree5ece5c90c9fd97818226a907ed15ed82802a633f /libjava/gnu/java
parentb0db0df2b2f8e152aca2c8d19643e259dab23cbb (diff)
downloadgcc-04ec3d4712519e32f85c034ff4237fcd5f9fbe39.zip
gcc-04ec3d4712519e32f85c034ff4237fcd5f9fbe39.tar.gz
gcc-04ec3d4712519e32f85c034ff4237fcd5f9fbe39.tar.bz2
c++: Fix false positive with -Wunused [PR114450]
The patch fixes a bug in the detection of the usage of static variables inside generic lambdas. The comment in finish_id_expression_1 already mentions this case, but the code didn't actually handle it. PR c++/114450 gcc/cp/ChangeLog: * lambda.cc (generic_lambda_fn_p): Handle null argument. * semantics.cc (finish_id_expression_1): Check for generic lambda. gcc/testsuite/ChangeLog: * g++.dg/warn/Wunused-var-42.C: New test. Co-authored-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/gnu/java')
0 files changed, 0 insertions, 0 deletions