Landing: 6a20cd184f11

Project / Subsystem

gcc / c++

Date

2026-06-05

Author

Marek Polacek

Commit

6a20cd184f11c2a7a663eb3170fd6ac1c25f27a9

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
6a20cd184f11c2a7a663eb3170fd6ac1c25f27a9
source_type
github
headline
Add missing auto diagnostic group
tldr
GCC now correctly handles diagnostic groups for explicit instantiations of C++ variable templates.
author
Marek Polacek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • diagnostics
discussion_id_link
bugzilla_pr
date
2026-06-05T00:00:00.000Z

This commit adds an auto_diagnostic_group to the check_explicit_inst_of_var_template function in the C++ front end. This ensures that diagnostics reported during the checking of explicit instantiations of variable templates are properly grouped and managed, preventing potential issues with diagnostic handling that were previously overlooked.